public interface SystemOfUnits
Imperial
system would have many of the units held by the US
Customary
system).Modifier and Type | Method | Description |
---|---|---|
String |
getName() |
|
<Q extends Quantity<Q>> |
getUnit(Class<Q> quantityType) |
Returns the default unit for the specified quantity or
null if none is defined for the given quantity in this unit system. |
Unit<?> |
getUnit(String string) |
Returns a unit with the given string representation or
null if none is found in this unit system. |
Set<? extends Unit<?>> |
getUnits() |
Returns a read only view over the units explicitly defined by this system.
|
Set<? extends Unit<?>> |
getUnits(Dimension dimension) |
Returns the units defined in this system having the specified dimension (convenience method).
|
<Q extends Quantity<Q>> Unit<Q> getUnit(Class<Q> quantityType)
null
if none is defined for the given quantity in this unit system.Q
- the compile-time quantity type.quantityType
- the quantity type.Unit<?> getUnit(String string)
null
if none is found in this unit system.string
- the string representation of a unit, not null
.Set<? extends Unit<?>> getUnits()
Copyright © 2014–2019 Jean-Marie Dautelle, Werner Keil, Otavio Santana. All rights reserved.