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 class
ImmutableMeasure.Meta
The meta-bean forImmutableMeasure
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getName()
Gets the measure name.int
hashCode()
boolean
isCurrencyConvertible()
Gets flag indicating whether measure values should be automatically converted to the reporting currency.static ImmutableMeasure.Meta
meta()
The meta-bean forImmutableMeasure
.ImmutableMeasure.Meta
metaBean()
static ImmutableMeasure
of(String name)
Returns a measure with the specified name whose values will be automatically converted to the reporting currency.static ImmutableMeasure
of(String name, boolean isCurrencyConvertible)
Returns a measure with the specified name.String
toString()
-
-
-
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:
metaBean
in 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:
isCurrencyConvertible
in interfaceMeasure
- Returns:
- the value of the property
-
-