Package com.opengamma.strata.calc
Class ImmutableMeasure
- java.lang.Object
-
- com.opengamma.strata.calc.ImmutableMeasure
-
- All Implemented Interfaces:
Measure,Named,Serializable,org.joda.beans.Bean,org.joda.beans.ImmutableBean
public final class ImmutableMeasure extends Object implements Measure, org.joda.beans.ImmutableBean, Serializable
The default, immutable implementation ofMeasure.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableMeasure.MetaThe meta-bean forImmutableMeasure.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetName()Gets the measure name.inthashCode()booleanisCurrencyConvertible()Gets flag indicating whether measure values should be automatically converted to the reporting currency.static ImmutableMeasure.Metameta()The meta-bean forImmutableMeasure.ImmutableMeasure.MetametaBean()static ImmutableMeasureof(String name)Returns a measure with the specified name whose values will be automatically converted to the reporting currency.static ImmutableMeasureof(String name, boolean isCurrencyConvertible)Returns a measure with the specified name.StringtoString()
-
-
-
Method Detail
-
of
public static ImmutableMeasure of(String name)
Returns a measure with the specified name whose values will be automatically converted to the reporting currency.Measure names must only contains the characters A-Z, a-z, 0-9 and -.
- Parameters:
name- the measure name- Returns:
- a measure with the specified name
-
of
public static ImmutableMeasure of(String name, boolean isCurrencyConvertible)
Returns a measure with the specified name.Measure names must only contains the characters A-Z, a-z, 0-9 and -.
- Parameters:
name- the measure nameisCurrencyConvertible- flag indicating whether measure values should be automatically converted to the reporting currency.- Returns:
- a measure with the specified name
-
meta
public static ImmutableMeasure.Meta meta()
The meta-bean forImmutableMeasure.- Returns:
- the meta-bean, not null
-
metaBean
public ImmutableMeasure.Meta metaBean()
- Specified by:
metaBeanin interfaceorg.joda.beans.Bean
-
getName
public String getName()
Gets the measure name.Measure names must only contains the characters A-Z, a-z, 0-9 and -.
-
isCurrencyConvertible
public boolean isCurrencyConvertible()
Gets flag indicating whether measure values should be automatically converted to the reporting currency.- Specified by:
isCurrencyConvertiblein interfaceMeasure- Returns:
- the value of the property
-
-