Class CalculationTargetList

  • All Implemented Interfaces:
    java.io.Serializable, Bean, ImmutableBean

    public final class CalculationTargetList
    extends java.lang.Object
    implements ImmutableBean, java.io.Serializable
    A list of calculation targets.

    CalculationTarget is a marker interface that all financial instruments implement, such as trades and positions. This allows them to be the target of calculations in the system.

    See Also:
    Serialized Form
    • Method Detail

      • of

        public static CalculationTargetList of​(CalculationTarget... targets)
        Obtains an instance from a list of targets.
        Parameters:
        targets - the list of targets
        Returns:
        the list of targets
      • of

        public static CalculationTargetList of​(java.util.List<? extends CalculationTarget> targets)
        Obtains an instance from a list of targets.
        Parameters:
        targets - the list of targets
        Returns:
        the list of targets
      • getTargets

        public com.google.common.collect.ImmutableList<CalculationTarget> getTargets()
        Gets the targets.
        Returns:
        the value of the property, not null
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object