Package org.geotools.measure
Class UnitDefinition
- Object
-
- UnitDefinition
-
public final class UnitDefinition extends Object
This class holds a unit and associates it with its available prefixes and aliases.It also allows overriding the symbol to use, in cases where the unit itself lacks this piece of information.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getAliases()
List<PrefixDefinition>
getPrefixes()
String
getSymbolOverride()
Unit<?>
getUnit()
static UnitDefinition
of(Unit<?> unit, List<PrefixDefinition> prefixes, String symbolOverride, List<String> aliases)
static UnitDefinition
withStandardPrefixes(Unit<?> unit)
-
-
-
Method Detail
-
of
public static UnitDefinition of(Unit<?> unit, List<PrefixDefinition> prefixes, String symbolOverride, List<String> aliases)
-
withStandardPrefixes
public static UnitDefinition withStandardPrefixes(Unit<?> unit)
-
getUnit
public Unit<?> getUnit()
-
getPrefixes
public List<PrefixDefinition> getPrefixes()
-
getSymbolOverride
public String getSymbolOverride()
-
-