|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.syndication.feed.module.base.types.FloatUnit
public class FloatUnit
This class represents a quantity consisting of a float value and an optional units specification.
| Constructor Summary | |
|---|---|
FloatUnit(float value,
java.lang.String units)
Creates a new instance of FloatUnit |
|
FloatUnit(java.lang.String source)
Creates a new float unit by parsing a String value |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Duplicates the object. |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getUnits()
Returns the units. |
float |
getValue()
Returns the float value. |
java.lang.String |
toString()
Returns a String representation of the object. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FloatUnit(java.lang.String source)
source - String value to parse
public FloatUnit(float value,
java.lang.String units)
value - float valueunits - Units represented, or null.| Method Detail |
|---|
public java.lang.String getUnits()
public float getValue()
public java.lang.Object clone()
clone in interface CloneableTypeclone in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||