org.apache.camel.dataformat.bindy.format
Class BigDecimalFormat
java.lang.Object
org.apache.camel.dataformat.bindy.format.BigDecimalFormat
- All Implemented Interfaces:
- Format<BigDecimal>
public class BigDecimalFormat
- extends Object
- implements Format<BigDecimal>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BigDecimalFormat
public BigDecimalFormat(int precision)
BigDecimalFormat
public BigDecimalFormat()
format
public String format(BigDecimal object)
throws Exception
- Description copied from interface:
Format
- Formats the object into a String
- Specified by:
format
in interface Format<BigDecimal>
- Parameters:
object
- the object
- Returns:
- formatted as a String
- Throws:
Exception
- can be thrown
parse
public BigDecimal parse(String string)
throws Exception
- Description copied from interface:
Format
- Parses a String into an object
- Specified by:
parse
in interface Format<BigDecimal>
- Parameters:
string
- the string
- Returns:
- T the object
- Throws:
Exception
- can be thrown
getPrecision
public int getPrecision()
setPrecision
public void setPrecision(int precision)
Apache CAMEL