public abstract class AbstractPrimaryUnit<D extends Dimension<D>,U extends Unit<D,U>> extends Object implements Unit<D,U>
ComparableUsing.EqualityMode, ComparableUsing.Operator
Modifier | Constructor and Description |
---|---|
protected |
AbstractPrimaryUnit(Rational baseFactor,
String name,
String symbol) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Equality is based on
_baseFactor alone, since two measures having the same factor of base unit are measures
of the same logical unit. |
Rational |
from(D dim) |
String |
getName() |
String |
getSymbol() |
int |
hashCode() |
Rational |
toBaseUnits(Rational theseUnits) |
Rational |
toNumber() |
clone, emptyArray, finalize, getClass, jailbreak, notify, notifyAll, toString, wait, wait, wait
compareTo, copy, fromNumber, getFullName, getFullSymbol, makeDimension, postfixBind
div, div, minus, plus, rem, rem, times, toBaseNumber, unaryMinus
compareToUsing, equalityMode
public String getName()
public String getSymbol()
public final Rational toNumber()
public boolean equals(Object o)
_baseFactor
alone, since two measures having the same factor of base unit are measures
of the same logical unit.Copyright © 2024. All rights reserved.