com.ancientprogramming.fixedformat4j.format.impl
Class AbstractDecimalFormatter<T>

java.lang.Object
  extended by com.ancientprogramming.fixedformat4j.format.AbstractFixedFormatter<T>
      extended by com.ancientprogramming.fixedformat4j.format.impl.AbstractNumberFormatter<T>
          extended by com.ancientprogramming.fixedformat4j.format.impl.AbstractDecimalFormatter<T>
All Implemented Interfaces:
FixedFormatter<T>
Direct Known Subclasses:
BigDecimalFormatter, DoubleFormatter, FloatFormatter

public abstract class AbstractDecimalFormatter<T>
extends AbstractNumberFormatter<T>

Base class for formatting decimal data

Since:
1.0.0
Author:
Jacob von Eyben - http://www.ancientprogramming.com

Field Summary
protected static char DECIMAL_SEPARATOR
           
protected static java.text.DecimalFormat FORMATTER
           
protected static char GROUPING_SEPARATOR
           
protected static java.lang.String ZERO_STRING
           
 
Constructor Summary
AbstractDecimalFormatter()
           
 
Method Summary
 java.lang.String asString(T obj, FormatInstructions instructions)
           
protected  java.lang.String getStringToConvert(java.lang.String string, FormatInstructions instructions)
           
 
Methods inherited from class com.ancientprogramming.fixedformat4j.format.impl.AbstractNumberFormatter
format, parse
 
Methods inherited from class com.ancientprogramming.fixedformat4j.format.AbstractFixedFormatter
asObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DECIMAL_SEPARATOR

protected static final char DECIMAL_SEPARATOR

GROUPING_SEPARATOR

protected static final char GROUPING_SEPARATOR

ZERO_STRING

protected static final java.lang.String ZERO_STRING

FORMATTER

protected static final java.text.DecimalFormat FORMATTER
Constructor Detail

AbstractDecimalFormatter

public AbstractDecimalFormatter()
Method Detail

asString

public java.lang.String asString(T obj,
                                 FormatInstructions instructions)
Specified by:
asString in class AbstractFixedFormatter<T>

getStringToConvert

protected java.lang.String getStringToConvert(java.lang.String string,
                                              FormatInstructions instructions)


Copyright © 2008 ancientprogramming.com. All Rights Reserved.