com.ancientprogramming.fixedformat4j.format.impl
Class AbstractDecimalFormatter<T>
java.lang.Object
com.ancientprogramming.fixedformat4j.format.AbstractFixedFormatter<T>
com.ancientprogramming.fixedformat4j.format.impl.AbstractNumberFormatter<T>
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
AbstractDecimalFormatter
public AbstractDecimalFormatter()
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.