JScience v2.0

org.jscience.physics.units
Class ProductUnit.Element

java.lang.Object
  extended by org.jscience.physics.units.ProductUnit.Element
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
ProductUnit<Q extends Quantity>

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.

JScience v2.0

Copyright © 2005 JScience.