Package com.rometools.modules.base.types
Class FloatUnit
- java.lang.Object
-
- com.rometools.modules.base.types.FloatUnit
-
- All Implemented Interfaces:
CloneableType,Cloneable
public class FloatUnit extends Object implements CloneableType
This class represents a quantity consisting of a float value and an optional units specification.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()Duplicates the object.booleanequals(Object o)StringgetUnits()Returns the units.floatgetValue()Returns the float value.StringtoString()Returns a String representation of the object.
-
-
-
Method Detail
-
getUnits
public String getUnits()
Returns the units.- Returns:
- Returns the units.
-
getValue
public float getValue()
Returns the float value.- Returns:
- Returns the float value.
-
clone
public Object clone()
Duplicates the object.- Specified by:
clonein interfaceCloneableType- Overrides:
clonein classObject- Returns:
- Duplicate FloatUnit
-
toString
public String toString()
Returns a String representation of the object.
-
-