Class NumberPatternFormat<T>
java.lang.Object
org.apache.camel.dataformat.bindy.format.NumberPatternFormat<T>
- All Implemented Interfaces:
Format<T>
,PatternFormat<T>
-
Constructor Summary
ModifierConstructorDescriptionprotected
protected
NumberPatternFormat
(String pattern, Locale locale) protected
NumberPatternFormat
(String pattern, Locale locale, int precision, String rounding, String decimalSeparator, String groupingSeparator) -
Method Summary
Modifier and TypeMethodDescriptionFormats the object into a Stringprotected NumberFormat
Gets the number format if in use.Method used to retrieve the pattern for the formatint
abstract T
Parses a String into an objectvoid
void
setPattern
(String pattern) void
setPrecision
(int precision) void
setRounding
(String rounding)
-
Constructor Details
-
NumberPatternFormat
protected NumberPatternFormat() -
NumberPatternFormat
-
NumberPatternFormat
-
-
Method Details
-
format
Description copied from interface:Format
Formats the object into a String -
parse
Description copied from interface:Format
Parses a String into an object -
getNumberFormat
Gets the number format if in use.- Returns:
- the number format, or null if not in use
-
getPattern
Description copied from interface:PatternFormat
Method used to retrieve the pattern for the format- Specified by:
getPattern
in interfacePatternFormat<T>
- Returns:
- String the pattern
-
setPattern
-
getPrecision
public int getPrecision() -
setPrecision
public void setPrecision(int precision) -
getRounding
-
setRounding
-
getLocale
-
setLocale
-