herschel.share.unit.impl
public interface UnitImpl
Unit, to be implemented
probably through an underlying library.NOTE: This interface is not meant for public use.
| Modifier and Type | Method and Description |
|---|---|
<U extends Unit<U>> |
atto()
Returns the derived Units having the 10-18 prefix, atto (a).
|
<U extends Unit<U>> |
centi()
Returns the derived Units having the 10-2 prefix, centi (c).
|
<U extends Unit<U>> |
deci()
Returns the derived Units having the 10-1 prefix, deci (d).
|
<U extends Unit<U>> |
deka()
Returns the derived Units having the 10 prefix, deka (da).
|
Unit<?> |
divide(Unit<?> other)
Returns a unit equals to the referred unit divided by another unit.
|
<U extends Unit<U>> |
exa()
Returns the derived Units having the 1018 prefix, exa (E).
|
<U extends Unit<U>> |
femto()
Returns the derived Units having the 10-15 prefix, femto (f).
|
Unit<?> |
getAsSI()
Returns the corresponding SI unit.
|
java.lang.String |
getDialogName()
Returns the dialog name of the unit.
|
double |
getValue(double value,
Unit<?> toUnit)
Converts a value from the current unit to another unit.
|
<U extends Unit<U>> |
giga()
Returns the derived Units having the 109 prefix, giga (G).
|
<U extends Unit<U>> |
hecto()
Returns the derived Units having the 102 prefix, hecto (h).
|
Unit<?> |
inverse()
Returns a unit equals to the inverse of the referred unit.
|
boolean |
isCompatible(UnitImpl other)
Whether this unit is compatible with other (has the same dimensions).
|
boolean |
isEquivalent(UnitImpl other)
Whether this unit is equivalent with other (they are interchangeable).
|
boolean |
isKnown()
Whether this unit is known.
|
<U extends Unit<U>> |
kilo()
Returns the derived Units having the 103 prefix, kilo (k).
|
<U extends Unit<U>> |
mega()
Returns the derived Units having the 106 prefix, mega (M).
|
<U extends Unit<U>> |
micro()
Returns the derived Units having the 10-6 prefix, micro (µ).
|
<U extends Unit<U>> |
milli()
Returns the derived Units having the 10-3 prefix, milli (m).
|
Unit<?> |
multiply(double factor,
java.lang.String name)
Returns the result of multiplying this unit by an approximate factor.
|
Unit<?> |
multiply(long factor,
java.lang.String name)
Returns the result of multiplying this unit by an exact factor.
|
Unit<?> |
multiply(Unit<?> other)
Returns a unit equals to the referred unit times another unit.
|
<U extends Unit<U>> |
nano()
Returns the derived Units having the 10-9 prefix, nano (n).
|
<U extends Unit<U>> |
peta()
Returns the derived Units having the 1015 prefix, peta (P).
|
<U extends Unit<U>> |
pico()
Returns the derived Units having the 10-12 prefix, pico (p).
|
Unit<?> |
power(int n)
Returns a unit equals to the referred unit raised to an exponent.
|
Unit<?> |
root(int n)
Returns a unit equals to the given root of the referred unit.
|
<U extends Unit<U>> |
tera()
Returns the derived Units having the 1012 prefix, tera (T).
|
java.lang.String getDialogName()
Unit<?> getAsSI()
Unit<?> multiply(long factor, java.lang.String name)
Unit<?> multiply(double factor, java.lang.String name)
Unit<?> multiply(Unit<?> other)
Unit<?> divide(Unit<?> other)
Unit<?> power(int n)
Unit<?> root(int n)
Unit<?> inverse()
<U extends Unit<U>> Unit<U> hecto()
<U extends Unit<U>> Unit<U> centi()
<U extends Unit<U>> Unit<U> milli()
<U extends Unit<U>> Unit<U> micro()
<U extends Unit<U>> Unit<U> pico()
<U extends Unit<U>> Unit<U> femto()
<U extends Unit<U>> Unit<U> atto()
double getValue(double value,
Unit<?> toUnit)
boolean isEquivalent(UnitImpl other)
boolean isCompatible(UnitImpl other)
boolean isKnown()