An abstract base class for unit systems.
| Modifier and Type | Class and Description |
|---|---|
| protected static class | AbstractSystemOfUnits.
Static helper class. |
| Modifier and Type | Field and Description |
|---|---|
| protected static final java. | |
| protected final Map | quantityToUnit
Holds the mapping quantity to unit. |
| protected final Set | units
Holds the units. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract String | |
| public <Q extends Quantity | getUnit(Class<Q>
the quantity type. quantityType)Implements javax. Returns the default unit for the specified quantity or |
| public Unit | getUnit(String
the string representation of a unit, not string)null.Implements javax. Returns a unit with the given string representation or |
| public Unit | Returns: the unit with the given string representation.the string representation of a unit, not string, UnitStyle null.the style of unit representation. style, boolean ignore the case or not? ignoreCase)Returns a unit with the given string representation in a
particular style or |
| public Unit | Returns: the unit with the given string representation.the string representation of a unit, not string, UnitStyle null.the style of unit representation. style)Returns a unit with the given string representation in a
particular style or |
| public Set | getUnits()
Implements javax. Returns a read only view over the units explicitly defined by this system. |
| public Set | getUnits(Dimension
the dimension of the units to be returned. dimension)Implements javax. Returns the units defined in this system having the specified dimension (convenience method). |
| logger | back to summary |
|---|---|
| protected static final java. | |
| quantityToUnit | back to summary |
|---|---|
| protected final Map<Class<? extends Quantity<Q extends Quantity<Q>>>, Unit<Q extends Quantity<Q>>> quantityToUnit Holds the mapping quantity to unit.
| |
| units | back to summary |
|---|---|
| protected final Set<Unit<?>> units Holds the units. | |
| AbstractSystemOfUnits | back to summary |
|---|---|
| public AbstractSystemOfUnits() | |
| getName | back to summary |
|---|---|
| public abstract String getName() Redeclares javax.
| |
| getUnit | back to summary |
|---|---|
| public <Q extends Quantity Implements javax. Doc from javax. Returns the default unit for the specified quantity or
| |
| getUnit | back to summary |
|---|---|
| public Unit Implements javax. Doc from javax. Returns a unit with the given string representation or | |
| getUnit | back to summary |
|---|---|
| public Unit Returns a unit with the given string representation in a
particular style or Note Use | |
| getUnit | back to summary |
|---|---|
| public Unit Returns a unit with the given string representation in a
particular style or | |
| getUnits | back to summary |
|---|---|
| public Set Implements javax. Doc from javax. Returns a read only view over the units explicitly defined by this system. This include the base and derived units which are assigned a special name and symbol. This set does not include new units created by arithmetic or other operations. | |
| getUnits | back to summary |
|---|---|
| public Set Implements javax. Doc from javax. Returns the units defined in this system having the specified dimension (convenience method). | |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static <U extends Unit | |
| public static <U extends Unit | |
| public static <U extends Unit | |
| public static <U extends Unit | |
| pack-priv static Set |
| Helper | back to summary |
|---|---|
| protected Helper() | |
| addUnit | back to summary |
|---|---|
| public static <U extends Unit Adds a new named unit to a collection. | |
| addUnit | back to summary |
|---|---|
| public static <U extends Unit Adds a new named unit to a collection. | |
| addUnit | back to summary |
|---|---|
| public static <U extends Unit Adds a new named unit to a set. | |
| addUnit | back to summary |
|---|---|
| public static <U extends Unit Adds a new labeled unit to a set.
| |
| getUnitsOfDimension | back to summary |
|---|---|
| pack-priv static Set | |