public class UnitsFrequencyEnumHandler extends Object implements IEnumerationHandler
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOGGER
Logger for this class.
|
private static Hashtable<String,String> |
patterns
Every UnitsFrequency value must match one of these patterns.
|
| Constructor and Description |
|---|
UnitsFrequencyEnumHandler() |
| Modifier and Type | Method and Description |
|---|---|
static Unit<Frequency> |
getBaseUnit(UnitsFrequency inModelUnit) |
Class<? extends Enumeration> |
getEntity()
Retrieve the entity corresponding to this handler.
|
Enumeration |
getEnumeration(Frequency inUnit) |
Enumeration |
getEnumeration(String value)
Attempt to find an enumeration from a list of enumeration values.
|
static <T extends Number> |
getQuantity(T inValue,
UnitsFrequency inModelUnit) |
static <T extends PrimitiveNumber> |
getQuantity(T inValue,
UnitsFrequency inModelUnit) |
private static Hashtable<String,String> |
makePatterns() |
public Enumeration getEnumeration(String value) throws EnumerationException
IEnumerationHandlergetEnumeration in interface IEnumerationHandlervalue - Value for which to find an enumeration.EnumerationExceptionpublic Enumeration getEnumeration(Frequency inUnit) throws EnumerationException
EnumerationExceptionpublic static Unit<Frequency> getBaseUnit(UnitsFrequency inModelUnit)
public static <T extends PrimitiveNumber> Frequency getQuantity(T inValue, UnitsFrequency inModelUnit) throws EnumerationException
EnumerationExceptionpublic static <T extends Number> Frequency getQuantity(T inValue, UnitsFrequency inModelUnit) throws EnumerationException
EnumerationExceptionpublic Class<? extends Enumeration> getEntity()
IEnumerationHandlergetEntity in interface IEnumerationHandlerCopyright © 2016 Open Microscopy Environment