Overview | Package | Class | Tree | Deprecated | Index | Help
| Hyperic HQ Plugin API v. 4.4.0.2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.hyperic.util.units
Class UnitNumber

    java.lang.Object
      org.hyperic.util.units.UnitNumber

    public class UnitNumber

extends java.lang.Object

Constructor Summary
`UnitNumber(double value, int units)`
`UnitNumber(double value, int units, int scale)`

Method Summary
`java.math.BigDecimal` | `getBaseValue()`
`int` | `getScale()`
`java.math.BigDecimal` | `getScaledValue(int targScale)`
`int` | `getUnits()`
`double` | `getValue()`
`java.lang.String` | `toString()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### UnitNumber

    public UnitNumber(double value,
                      int units)

### UnitNumber

    public UnitNumber(double value,
                      int units,
                      int scale)

Method Detail

### getValue

    public double getValue()

### getUnits

    public int getUnits()

### getScale

    public int getScale()

### getBaseValue

    public java.math.BigDecimal getBaseValue()

### getScaledValue

    public java.math.BigDecimal getScaledValue(int targScale)

### toString

    public java.lang.String toString()

  Overrides:
    `toString` in class `java.lang.Object`

Overview | Package | Class | Tree | Deprecated | Index | Help
| Hyperic HQ Plugin API v. 4.4.0.2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.