org.rhq.core.domain.measurement.composite
Class MeasurementNumericValueAndUnits

java.lang.Object
  extended by org.rhq.core.domain.measurement.composite.MeasurementNumericValueAndUnits
All Implemented Interfaces:
MeasurementValueAndUnits

public class MeasurementNumericValueAndUnits
extends Object
implements MeasurementValueAndUnits


Field Summary
static MeasurementNumericValueAndUnits ERROR
           
 
Constructor Summary
MeasurementNumericValueAndUnits(Double value, MeasurementUnits units)
           
 
Method Summary
 MeasurementUnits getUnits()
           
 Double getValue()
           
 String toString()
          Equivalent to MeasurementConverter.format(value, units, true)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ERROR

public static final MeasurementNumericValueAndUnits ERROR
Constructor Detail

MeasurementNumericValueAndUnits

public MeasurementNumericValueAndUnits(Double value,
                                       MeasurementUnits units)
Method Detail

getValue

public Double getValue()
Specified by:
getValue in interface MeasurementValueAndUnits

getUnits

public MeasurementUnits getUnits()
Specified by:
getUnits in interface MeasurementValueAndUnits

toString

public String toString()
Equivalent to MeasurementConverter.format(value, units, true)

Overrides:
toString in class Object


Copyright © 2008-2009 RHQ Project Advisory Board (Red Hat, Inc.). All Rights Reserved.