JADE v6.1

javax.units
Class ProductUnit.Element

java.lang.Object
  extended byjavax.units.ProductUnit.Element
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
ProductUnit

public static final class ProductUnit.Element
extends java.lang.Object
implements java.io.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 java.lang.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.

JADE v6.1

Copyright © 2004 Jean-Marie Dautelle.