Java Units API
Build 2004-02-06

javax.units
Class ProductUnit.Element

Object
  extended byProductUnit.Element
All Implemented Interfaces:
Serializable
Enclosing class:
ProductUnit

public static final class ProductUnit.Element
extends Object
implements Serializable

Inner product element represents a rational power of a single unit.

See Also:
Serialized Form

Method Summary
 int getPow()
          Returns the power exponent.
 int getRoot()
          Returns the root exponent.
 Unit getUnit()
          Returns this element's unit.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getUnit

public Unit getUnit()
Returns this element's unit.

Returns:
the single unit.

getPow

public int getPow()
Returns the power exponent. The power exponent can be negative but is always different from zero.

Returns:
the power exponent of the single unit.

getRoot

public int getRoot()
Returns the root exponent. The root exponent is always greater than zero.

Returns:
the root exponent of the single unit.

Java Units API
Build 2004-02-06

Symbols, terms and definitions
JSR-108 project