@Immutable public final class UnknownUnit extends BaseUnit
UnitImpl.MyConverter
DIMENSIONLESS
Modifier and Type | Method and Description |
---|---|
static UnknownUnit |
create(java.lang.String name)
Factory method for constructing an unknown unit from a name.
|
boolean |
equals(java.lang.Object object)
Indicates if this unit is semantically identical to an object.
|
int |
hashCode()
Returns the hash code of this instance.
|
boolean |
isDimensionless()
Indicates if this unit is dimensionless.
|
getBaseQuantity, getID, getOrCreate, toString
clone, fromDerivedUnit, fromDerivedUnit, fromDerivedUnit, fromDerivedUnit, getCanonicalString, getDerivedUnit, getDimension, getQuantityDimension, isCompatible, isReciprocalOf, myDivideBy, myDivideInto, myMultiplyBy, myRaiseTo, setDimension, toDerivedUnit, toDerivedUnit, toDerivedUnit, toDerivedUnit
convertTo, convertTo, convertTo, convertTo, convertTo, convertTo, divideBy, divideInto, getConverterTo, getName, getPlural, getSymbol, getUnitName, log, makeLabel, multiplyBy, multiplyBy, raiseTo, shiftTo, shiftTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
convertTo, convertTo, convertTo, convertTo, convertTo, convertTo, divideBy, divideInto, getConverterTo, getName, getPlural, getSymbol, getUnitName, log, makeLabel, multiplyBy, multiplyBy, raiseTo, shiftTo, shiftTo
public static UnknownUnit create(java.lang.String name) throws NameException
name
- The name of the unit.NameException
- name == null
.public boolean equals(java.lang.Object object)
public int hashCode()
hashCode
in class DerivedUnitImpl
public boolean isDimensionless()
isDimensionless
in interface Base
isDimensionless
in interface Unit
isDimensionless
in class BaseUnit
false
always.