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.
|
public String extractUnits(String val)
val - the string to convertpublic void setPrecision(int precision)
precision - the precision to setpublic int getPrecision()
Copyright © 2013. All Rights Reserved.