@Immutable public final class UnknownUnit extends BaseUnit
UnitImpl.MyConverterDIMENSIONLESS| 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, toStringclone, fromDerivedUnit, fromDerivedUnit, fromDerivedUnit, fromDerivedUnit, getCanonicalString, getDerivedUnit, getDimension, getQuantityDimension, isCompatible, isReciprocalOf, myDivideBy, myDivideInto, myMultiplyBy, myRaiseTo, setDimension, toDerivedUnit, toDerivedUnit, toDerivedUnit, toDerivedUnitconvertTo, convertTo, convertTo, convertTo, convertTo, convertTo, divideBy, divideInto, getConverterTo, getName, getPlural, getSymbol, getUnitName, log, makeLabel, multiplyBy, multiplyBy, raiseTo, shiftTo, shiftToclone, finalize, getClass, notify, notifyAll, wait, wait, waitconvertTo, convertTo, convertTo, convertTo, convertTo, convertTo, divideBy, divideInto, getConverterTo, getName, getPlural, getSymbol, getUnitName, log, makeLabel, multiplyBy, multiplyBy, raiseTo, shiftTo, shiftTopublic 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 DerivedUnitImplpublic boolean isDimensionless()
isDimensionless in interface BaseisDimensionless in interface UnitisDimensionless in class BaseUnitfalse always.