Package | Description |
---|---|
org.unitConverter.unit |
Everything to do with the units that make up Unit Converter.
|
Modifier and Type | Field and Description |
---|---|
static UnitPrefix |
SI.ATTO |
static UnitPrefix |
SI.CENTI |
static UnitPrefix |
SI.DECI |
static UnitPrefix |
SI.DEKA |
static UnitPrefix |
SI.EXA |
static UnitPrefix |
SI.EXBI |
static UnitPrefix |
SI.FEMTO |
static UnitPrefix |
SI.GIBI |
static UnitPrefix |
SI.GIGA |
static UnitPrefix |
SI.HECTO |
static UnitPrefix |
SI.KIBI |
static UnitPrefix |
SI.KILO |
static UnitPrefix |
SI.MEBI |
static UnitPrefix |
SI.MEGA |
static UnitPrefix |
SI.MICRO |
static UnitPrefix |
SI.MILLI |
static UnitPrefix |
SI.NANO |
static UnitPrefix |
SI.PEBI |
static UnitPrefix |
SI.PETA |
static UnitPrefix |
SI.PICO |
static UnitPrefix |
SI.TEBI |
static UnitPrefix |
SI.TERA |
static UnitPrefix |
SI.YOCTO |
static UnitPrefix |
SI.YOTTA |
static UnitPrefix |
SI.ZEPTO |
static UnitPrefix |
SI.ZETTA |
Modifier and Type | Method and Description |
---|---|
UnitPrefix |
UnitPrefix.dividedBy(double divisor)
Divides this prefix by a scalar
|
UnitPrefix |
UnitPrefix.dividedBy(UnitPrefix other)
Divides this prefix by
other . |
UnitPrefix |
UnitDatabase.getPrefix(java.lang.String name)
Gets a unit prefix from the database from its name
|
UnitPrefix |
UnitDatabase.getPrefixFromExpression(java.lang.String expression)
Gets a unit prefix from a prefix expression
|
UnitPrefix |
UnitPrefix.times(double multiplicand)
Multiplies this prefix by a scalar
|
UnitPrefix |
UnitPrefix.times(UnitPrefix other)
Multiplies this prefix by
other . |
UnitPrefix |
UnitPrefix.toExponent(double exponent)
Raises this prefix to an exponent.
|
static UnitPrefix |
UnitPrefix.valueOf(double multiplier)
Gets a
UnitPrefix from a multiplier |
static UnitPrefix |
UnitPrefix.valueOf(double multiplier,
NameSymbol ns)
Gets a
UnitPrefix from a multiplier and a name |
UnitPrefix |
UnitPrefix.withName(NameSymbol ns) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,UnitPrefix> |
UnitDatabase.prefixMap() |
Modifier and Type | Method and Description |
---|---|
void |
UnitDatabase.addPrefix(java.lang.String name,
UnitPrefix prefix)
Adds a unit prefix to the database.
|
UnitPrefix |
UnitPrefix.dividedBy(UnitPrefix other)
Divides this prefix by
other . |
UnitPrefix |
UnitPrefix.times(UnitPrefix other)
Multiplies this prefix by
other . |
LinearUnit |
LinearUnit.withPrefix(UnitPrefix prefix)
Returns the result of applying
prefix to this unit. |