org.apache.camel.dataformat.bindy.format
Class AbstractNumberFormat<T extends Number>

java.lang.Object
  extended by org.apache.camel.dataformat.bindy.format.AbstractNumberFormat<T>
All Implemented Interfaces:
Format<T>
Direct Known Subclasses:
BigDecimalFormat, BigIntegerFormat, DoubleFormat, FloatFormat, IntegerFormat, LongFormat, ShortFormat

public abstract class AbstractNumberFormat<T extends Number>
extends Object
implements Format<T>


Constructor Summary
AbstractNumberFormat()
           
AbstractNumberFormat(boolean impliedDecimalPosition, int precision, Locale locale)
           
 
Method Summary
protected  DecimalFormat getFormat()
           
protected  double getMultiplier()
           
protected  int getPrecision()
           
protected  boolean hasImpliedDecimalPosition()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.camel.dataformat.bindy.Format
format, parse
 

Constructor Detail

AbstractNumberFormat

public AbstractNumberFormat()

AbstractNumberFormat

public AbstractNumberFormat(boolean impliedDecimalPosition,
                            int precision,
                            Locale locale)
Method Detail

hasImpliedDecimalPosition

protected boolean hasImpliedDecimalPosition()

getPrecision

protected int getPrecision()

getFormat

protected DecimalFormat getFormat()

getMultiplier

protected double getMultiplier()


Apache Camel