Method Summary |
|
public boolean | equals(Object that) Indicates if this product unit is considered equals to the specified
object.
Parameters: that - the object to compare for equality. |
static Unit<? extends Quantity> | getPowInstance(Unit> unit, int n) Returns the product unit corresponding to this unit raised to
the specified exponent.
Parameters: unit - the unit. Parameters: nn - the exponent (nn > 0). |
static Unit<? extends Quantity> | getProductInstance(Unit> left, Unit> right) Returns the product of the specified units.
Parameters: left - the left unit operand. Parameters: right - the right unit operand. |
static Unit<? extends Quantity> | getQuotientInstance(Unit> left, Unit> right) Returns the quotient of the specified units.
Parameters: left - the dividend unit operand. Parameters: right - the divisor unit operand. |
static Unit<? extends Quantity> | getRootInstance(Unit> unit, int n) Returns the product unit corresponding to the specified root of
the specified unit.
Parameters: unit - the unit. Parameters: n - the root's order (n > 0). |
public Unit<? super Q> | getStandardUnit() |
public Unit<? extends Quantity> | getUnit(int index) Returns the unit at the specified position.
Parameters: index - the index of the unit to return. |
public int | getUnitCount() Returns the number of units in this product. |
public int | getUnitPow(int index) Returns the power exponent of the unit at the specified position.
Parameters: index - the index of the unit to return. |
public int | getUnitRoot(int index) Returns the root exponent of the unit at the specified position.
Parameters: index - the index of the unit to return. |
public int | hashCode() |
public UnitConverter | toStandardUnit() |