Package org.geotools.measure
Class UnitDefinition
Object
UnitDefinition
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
Modifier and TypeMethodDescriptionUnit<?>
getUnit()
static UnitDefinition
static UnitDefinition
withStandardPrefixes
(Unit<?> unit)
-
Method Details
-
of
public static UnitDefinition of(Unit<?> unit, List<PrefixDefinition> prefixes, String symbolOverride, List<String> aliases) -
withStandardPrefixes
-
getUnit
public Unit<?> getUnit() -
getPrefixes
-
getSymbolOverride
-
getAliases
-