public abstract class AbstractPrimaryUnit<D extends Dimension<D>,U extends Unit<D,U>> extends java.lang.Object implements Unit<D,U>
ComparableUsing.EqualityMode, ComparableUsing.Operator| Modifier | Constructor and Description |
|---|---|
protected |
AbstractPrimaryUnit(Rational baseFactor,
java.lang.String name,
java.lang.String symbol) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.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) |
java.lang.String |
getName() |
java.lang.String |
getSymbol() |
int |
hashCode() |
Rational |
toBaseUnits(Rational theseUnits) |
Rational |
toNumber() |
clone, finalize, getClass, jailbreak, notify, notifyAll, toString, wait, wait, waitcompareTo, copy, fromNumber, getFullName, getFullSymbol, makeDimension, postfixBinddiv, div, minus, plus, rem, rem, times, toBaseNumber, unaryMinuscompareToUsing, equalityModeprotected AbstractPrimaryUnit(Rational baseFactor, java.lang.String name, java.lang.String symbol)
public java.lang.String getName()
public java.lang.String getSymbol()
public final Rational toNumber()
public boolean equals(java.lang.Object o)
_baseFactor alone, since two measures having the same factor of base unit are measures
of the same logical unit.equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2021. All rights reserved.