Class NumberPatternFormat<T>
java.lang.Object
org.apache.camel.dataformat.bindy.format.NumberPatternFormat<T>
- All Implemented Interfaces:
Format<T>,PatternFormat<T>
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedNumberPatternFormat(String pattern, Locale locale) protectedNumberPatternFormat(String pattern, Locale locale, int precision, String rounding, String decimalSeparator, String groupingSeparator) -
Method Summary
Modifier and TypeMethodDescriptionFormats the object into a Stringprotected NumberFormatGets the number format if in use.Method used to retrieve the pattern for the formatintabstract TParses a String into an objectvoidvoidsetPattern(String pattern) voidsetPrecision(int precision) voidsetRounding(String rounding)
-
Constructor Details
-
NumberPatternFormat
protected NumberPatternFormat() -
NumberPatternFormat
-
NumberPatternFormat
-
-
Method Details
-
format
Description copied from interface:FormatFormats the object into a String -
parse
Description copied from interface:FormatParses 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:PatternFormatMethod used to retrieve the pattern for the format- Specified by:
getPatternin interfacePatternFormat<T>- Returns:
- String the pattern
-
setPattern
-
getPrecision
public int getPrecision() -
setPrecision
public void setPrecision(int precision) -
getRounding
-
setRounding
-
getLocale
-
setLocale
-