public abstract class NumberPatternFormat<T> extends Object implements PatternFormat<T>
| Constructor and Description |
|---|
NumberPatternFormat() |
NumberPatternFormat(String pattern,
Locale locale) |
| Modifier and Type | Method and Description |
|---|---|
String |
format(T object)
Formats the object into a String
|
protected NumberFormat |
getNumberFormat()
Gets the number format if in use.
|
String |
getPattern()
Method used to retrieve the pattern for the format
|
abstract T |
parse(String string)
Parses a String into an object
|
void |
setPattern(String pattern) |
public String format(T object) throws Exception
Formatpublic abstract T parse(String string) throws Exception
Formatprotected NumberFormat getNumberFormat()
public String getPattern()
PatternFormatgetPattern in interface PatternFormat<T>public void setPattern(String pattern)
Apache Camel