| Modifier and Type | Field | Description |
|---|---|---|
static U |
U.BARREL |
|
static U |
U.CC |
|
static U |
U.CM |
|
static U |
U.CUP |
|
static U |
U.DAY |
|
static U |
U.DEGREE |
|
static U |
U.DM |
|
static U |
U.FLOZ |
|
static U |
U.FOOT |
|
static U |
U.G |
|
static U |
U.GALLON |
|
static U |
U.H |
|
static U |
U.INCH |
|
static U |
U.KELVIN |
|
static U |
U.KG |
|
static U |
U.KM |
|
static U |
U.L |
|
static U |
U.LIGHTYEAR |
|
static U |
U.M |
|
static U |
U.MILE |
|
static U |
U.MIN |
|
static U |
U.ML |
|
static U |
U.MM |
|
static U |
U.MONTH |
|
static U |
U.MS |
|
static U |
U.N |
|
static U |
U.NONE |
|
static U |
U.OUNCE |
|
static U |
U.PINT |
|
static U |
U.POUND |
|
static U |
U.RADIAN |
|
static U |
U.S |
|
static U |
U.SC |
|
static U |
U.SCM |
|
static U |
U.TABLESPOON |
|
static U |
U.TEASPOON |
|
static U |
U.TON |
|
static U |
U.TON_UK |
|
static U |
U.TON_US |
|
static U |
U.WEEK |
|
static U |
U.YARD |
|
static U |
U.YEAR |
| Modifier and Type | Method | Description |
|---|---|---|
U |
U.dimDiff(U b) |
Calculates and the Unit that is the dimensional difference between this Unit and another.
|
static U |
U.dimDiff(U a,
U b) |
Calculates and the Unit that is the dimensional difference between Unit A and Unit B.
|
U |
U.div(U a) |
Divide this unit with another unit.
|
static U |
U.getBestUnit(UV uv,
double target) |
Calculates and returns the most suitable unit to display a given UV in.
|
U |
U.inverse() |
Calculate the inverse of this unit.
|
U |
U.mul(U a) |
Multiply this Unit with another Unit.
|
U |
U.pow(double p) |
Perform repeated multiplication of this unit with itself.
|
U |
U.reduce() |
Checks the unit for multiple instances of the same quantity and combines them.
|
U |
UV.unit() |
Returns the Unit of this UnitValue.
|
| Modifier and Type | Method | Description |
|---|---|---|
UV |
UV.add(double value,
U u) |
Like
UV.add(UV uv) but the UnitValue to add is specified as a value and a Unit. |
UV |
UV.convert(U to) |
Converts this UnitValue to another Unit.
|
UV |
UV.convertAbsolute(U to) |
Converts this unit while accounting for offset.
|
U |
U.dimDiff(U b) |
Calculates and the Unit that is the dimensional difference between this Unit and another.
|
static U |
U.dimDiff(U a,
U b) |
Calculates and the Unit that is the dimensional difference between Unit A and Unit B.
|
U |
U.div(U a) |
Divide this unit with another unit.
|
UV |
UV.div(double value,
U u) |
Like
UV.div(UV uv) but the UnitValue to divide with is specified as a value and a Unit. |
boolean |
U.isSameQuantity(U b) |
Checks whether or not this unit and unit b has the same total quantity.
|
U |
U.mul(U a) |
Multiply this Unit with another Unit.
|
UV |
UV.mul(double value,
U u) |
Like
UV.mul(UV uv) but the UnitValue to multiply with is specified as a value and a Unit. |
UV |
UV.sub(double value,
U u) |
Like
UV.sub(UV uv) but the UnitValue to subtract is specified as a value and a Unit. |
| Constructor | Description |
|---|---|
U(U u,
double compoundLength,
String shortName,
String longName) |
Defines a new Unit based on another.
|
UV(double value,
U unit) |
Copyright © 2018. All rights reserved.