org.apache.camel.dataformat.bindy.format
Class FloatFormat
java.lang.Object
org.apache.camel.dataformat.bindy.format.AbstractNumberFormat<Float>
org.apache.camel.dataformat.bindy.format.FloatFormat
- All Implemented Interfaces:
- Format<Float>
public class FloatFormat
- extends AbstractNumberFormat<Float>
Constructor Summary |
FloatFormat(boolean impliedDecimalPosition,
int precision,
Locale locale)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FloatFormat
public FloatFormat(boolean impliedDecimalPosition,
int precision,
Locale locale)
format
public String format(Float object)
throws Exception
- Description copied from interface:
Format
- Formats the object into a String
- Parameters:
object
- the object
- Returns:
- formatted as a String
- Throws:
Exception
- can be thrown
parse
public Float parse(String string)
throws Exception
- Description copied from interface:
Format
- Parses a String into an object
- Parameters:
string
- the string
- Returns:
- T the object
- Throws:
Exception
- can be thrown
Apache Camel