Package com.opengamma.strata.basics
Class CalculationTargetList
- java.lang.Object
-
- com.opengamma.strata.basics.CalculationTargetList
-
- All Implemented Interfaces:
Serializable,org.joda.beans.Bean,org.joda.beans.ImmutableBean
public final class CalculationTargetList extends Object implements org.joda.beans.ImmutableBean, Serializable
A list of calculation targets.CalculationTargetis 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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)ImmutableList<CalculationTarget>getTargets()Gets the targets.inthashCode()static org.joda.beans.TypedMetaBean<CalculationTargetList>meta()The meta-bean forCalculationTargetList.org.joda.beans.TypedMetaBean<CalculationTargetList>metaBean()static CalculationTargetListof(CalculationTarget... targets)Obtains an instance from a list of targets.static CalculationTargetListof(List<? extends CalculationTarget> targets)Obtains an instance from a list of targets.StringtoString()
-
-
-
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(List<? extends CalculationTarget> targets)
Obtains an instance from a list of targets.- Parameters:
targets- the list of targets- Returns:
- the list of targets
-
meta
public static org.joda.beans.TypedMetaBean<CalculationTargetList> meta()
The meta-bean forCalculationTargetList.- Returns:
- the meta-bean, not null
-
metaBean
public org.joda.beans.TypedMetaBean<CalculationTargetList> metaBean()
- Specified by:
metaBeanin interfaceorg.joda.beans.Bean
-
getTargets
public ImmutableList<CalculationTarget> getTargets()
Gets the targets.- Returns:
- the value of the property, not null
-
-