public class UnitParser extends Object
| Constructor and Description |
|---|
UnitParser() |
| Modifier and Type | Method and Description |
|---|---|
String |
extractUnits(String val)
extract units if and only if the string has a pattern of "<##>mm" or "<##>cm"or "<##>in" whitespace is ignored
|
int |
getPrecision()
Getter for precision attribute.
|
void |
setPrecision(int precision)
Setter for precision attribute.
|
String |
toString() |
public String extractUnits(String val)
val - the string to convertpublic void setPrecision(int precision)
precision - the precision to setpublic int getPrecision()
public String toString()
toString in class ObjectObject.toString()Copyright © 2014. All Rights Reserved.