public final class UnitDefinition extends Object
It also allows overriding the symbol to use, in cases where the unit itself lacks this piece of information.
Modifier and Type | Method and 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) |
public static UnitDefinition of(Unit<?> unit, List<PrefixDefinition> prefixes, String symbolOverride, List<String> aliases)
public static UnitDefinition withStandardPrefixes(Unit<?> unit)
public Unit<?> getUnit()
public List<PrefixDefinition> getPrefixes()
public String getSymbolOverride()
Copyright © 1996–2022 Geotools. All rights reserved.