public class UnitParser
extends Object
Parses a string that contains a number and an unit (e.g. "12cm").
-
Constructor Summary 
Constructors
-
Method Summary 
Gets the unparsed string containing this vale+unit.
Gets the value, as a string.
Methods inherited from class java.lang.Object 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details 
-
UnitParser 
public UnitParser(String value)
-
Method Details 
-
getUnparsedValue 
public String getUnparsedValue()
Gets the unparsed string containing this vale+unit.
- Returns:
- the unparsed string
-
getValue 
Gets the value, as a string.
- Returns:
- the value.
-
getUnitName 
Gets the unit name.
- Returns:
- the unit.