public enum Occurrence extends java.lang.Enum<Occurrence> implements Unit<Occurrence>
Unit.UnitMisMatchException| Enum Constant and Description |
|---|
Occ |
| Modifier and Type | Field and Description |
|---|---|
static java.util.EnumSet<Occurrence> |
ALLOWABLE_OCCURENCE |
MATH_CONTEXT| Modifier and Type | Method and Description |
|---|---|
UnitValue<Occurrence> |
convert(UnitValue<Occurrence> otherValue)
Returns an instance of the UnitValue with this Unit converted according to a specific ratio
|
static UnitValue<Occurrence> |
createValueFromUnitString(java.lang.String unitString,
java.math.BigDecimal theValue)
helper method used to choose the correct UOM and set the value.
|
long |
getRatio(Occurrence o)
Deprecated.
|
UnitValue<Occurrence> |
valueOf(java.math.BigDecimal b)
Returns an instance of the UnitValue with this Unit and provided quantity
|
static Occurrence |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Occurrence[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Occurrence Occ
public static final transient java.util.EnumSet<Occurrence> ALLOWABLE_OCCURENCE
public static Occurrence[] values()
for (Occurrence c : Occurrence.values()) System.out.println(c);
public static Occurrence valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null@Deprecated public long getRatio(Occurrence o)
UnitgetRatio in interface Unit<Occurrence>o - Occurrence Unitpublic UnitValue<Occurrence> valueOf(java.math.BigDecimal b)
valueOf in interface Unit<Occurrence>b - BigDecimalpublic UnitValue<Occurrence> convert(UnitValue<Occurrence> otherValue)
convert in interface Unit<Occurrence>otherValue - UnitValue unit value to convert topublic static UnitValue<Occurrence> createValueFromUnitString(java.lang.String unitString, java.math.BigDecimal theValue)
unitString - the UOM for the Data valuetheValue - the data value