This class represents the building blocks on top of which all others physical units are created. Base units are always unscaled SI units.
When using the standard model,
all seven SI base units are dimensionally independent.
| Modifier and Type | Field and Description |
|---|---|
| private final Dimension | dimension
Holds the base unit dimension. |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. obj)Implements abstract tech. Indicates whether some other object is "equal to" this one. |
| public Map | getBaseUnits()
Implements abstract tech. Implements javax. Returns the base units and their exponent whose product is this unit, or |
| public Dimension | getDimension()
Implements abstract tech. Implements javax. Returns the dimension of this unit. |
| public UnitConverter | getSystemConverter()
Implements abstract tech. Returns the converter from this unit to its unscaled |
| public int | hashCode()
Implements abstract tech. Returns a hash code value for this object. |
| public Unit | toSystemUnit()
Implements abstract tech. Returns the unscaled |
| dimension | back to summary |
|---|---|
| private final Dimension dimension Holds the base unit dimension. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| BaseUnit | back to summary |
|---|---|
| public BaseUnit(String symbol, Dimension dimension) Creates a base unit having the specified symbol and dimension.
| |
| BaseUnit | back to summary |
|---|---|
| public BaseUnit(String symbol) Creates a base unit having the specified symbol.
| |
| BaseUnit | back to summary |
|---|---|
| public BaseUnit(String symbol, String name) Creates a base unit having the specified symbol and name.
| |
| BaseUnit | back to summary |
|---|---|
| public BaseUnit(String symbol, String name, Dimension dimension) Creates a base unit having the specified symbol, name and dimension.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Implements abstract tech. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getBaseUnits | back to summary |
|---|---|
| public Map Implements abstract tech. Implements javax. Doc from javax. Returns the base units and their exponent whose product is this unit, or
| |
| getDimension | back to summary |
|---|---|
| public Dimension getDimension() Implements abstract tech. Implements javax. Doc from javax. Returns the dimension of this unit. Two units | |
| getSystemConverter | back to summary |
|---|---|
| public UnitConverter getSystemConverter() throws UnsupportedOperationException Implements abstract tech. Doc from tech. Returns the converter from this unit to its unscaled
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Implements abstract tech. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toSystemUnit | back to summary |
|---|---|
| public Unit Implements abstract tech. Doc from tech. Returns the unscaled | |