D - The Dimension type expressed using this unit typeU - This type (recursive to enforce type-safety).public interface Unit<D extends Dimension<D>,U extends Unit<D,U>> extends Dimension<U>
| Modifier and Type | Method and Description |
|---|---|
default int |
compareTo(U o) |
default U |
copy(Rational value)
Given a value produce a copy of this dimension with the given value
|
Rational |
from(D dim) |
default U |
fromNumber(Rational n) |
default String |
getFullName() |
default String |
getFullSymbol() |
String |
getName() |
String |
getSymbol() |
D |
makeDimension(Number amount) |
default D |
postfixBind(Number amount) |
Rational |
toBaseUnits(Rational theseUnits) |
String getName()
String getSymbol()
Rational toBaseUnits(Rational theseUnits)
theseUnits - A magnitude of these units to convert to base units.theseUnits converted to the base units of this unit type.default U copy(Rational value)
Dimensiondefault String getFullName()
default String getFullSymbol()
Copyright © 2024. All rights reserved.