Package | Description |
---|---|
ucar.units |
Provides support for parsing and formatting string unit specification,
converting numerical values between compatible units, and performing arithmetic
on units (such as dividing one unit by another).
|
Modifier and Type | Field and Description |
---|---|
protected Factor[] |
Dimension._factors
The individual elements of this dimension.
|
Modifier and Type | Method and Description |
---|---|
Factor[] |
Dimension.getFactors()
Returns the array of Factor-s constituting this dimension.
|
protected Factor[] |
Dimension.mult(Dimension that)
Multiplies this dimension by another dimension.
|
protected Factor[] |
Dimension.pow(int power)
Raises this dimension to a power.
|
Factor |
Factor.pow(int power)
Raises this Factor to a power.
|
Modifier and Type | Method and Description |
---|---|
String |
UnitFormatImpl.format(Factor factor)
Formats a Factor (a base unit/exponent pair).
|
String |
UnitFormat.format(Factor factor)
Formats a Factor (a base unit/exponent pair).
|
StringBuffer |
UnitFormat.format(Factor factor,
StringBuffer buffer)
Appends a formatted factor to a string buffer.
|
StringBuffer |
StandardUnitFormat.format(Factor factor,
StringBuffer buf)
Formats a Factor.
|
boolean |
Factor.isReciprocalOf(Factor that)
Indicates if this Factor is the reciprocal of another Factor.
|
Constructor and Description |
---|
Dimension(Factor factor)
Constructs from a single Factor.
|
Dimension(Factor[] factors)
Constructs from an array of Factor-s.
|
Factor(Factor factor,
int exponent)
Constructs from a Factor and an exponent.
|
QuantityDimension(Factor[] factors)
Constructs from an array of Factor-s.
|
Copyright © 1999–2017 UCAR/Unidata. All rights reserved.