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