|
Java Units API Build 2004-02-06 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object Unit DerivedUnit AlternateUnit
This class represents an alternate unit. Alternate units are used
in expressions to distinguish between quantities of a different nature
but of the same dimensions (e.g. alternate unit rad
distinguishes angular acceleration rad/s²
from
scalar acceleration 1/s²
).
Instances of this class are created using the Unit.alternate(java.lang.String)
method.
Unit.alternate(java.lang.String)
,
Serialized FormField Summary |
Fields inherited from class Unit |
ONE |
Method Summary | |
boolean |
equals(Object that)
Indicates if this unit is equal to the object specified. |
String |
getSymbol()
Returns the symbol for this alternate unit. |
Unit |
getSystemUnit()
Returns the system unit for this unit. |
Methods inherited from class Unit |
add, alternate, appendTo, divide, getConverterTo, getDimension, getInstance, getInstances, hashCode, isCompatible, isSystemUnit, multiply, multiply, pow, readResolve, root, searchSymbol, toString, valueOf |
Methods inherited from class Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
public final String getSymbol()
public Unit getSystemUnit()
Unit
Note: Having the same system units is not sufficient to ensure that a converter exists between the two units (e.g. °C/m and K/m).
getSystemUnit
in class Unit
Unit.isSystemUnit()
public boolean equals(Object that)
Unit
==
to test for equality.
equals
in class Unit
that
- the object to compare for equality.
true
if this unit and the specified object are
considered equal; false
otherwise.
|
Java Units API Build 2004-02-06 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Symbols, terms and definitions | JSR-108 project |