com.ancientprogramming.fixedformat4j.format
Class AbstractFixedFormatter<T>
java.lang.Object
com.ancientprogramming.fixedformat4j.format.AbstractFixedFormatter<T>
- All Implemented Interfaces:
- FixedFormatter<T>
- Direct Known Subclasses:
- AbstractNumberFormatter, BooleanFormatter, CharacterFormatter, DateFormatter, StringFormatter
public abstract class AbstractFixedFormatter<T>
- extends java.lang.Object
- implements FixedFormatter<T>
Handles default formatting and parsing based on FixedFormatAnnotation values.
- 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 |
AbstractFixedFormatter
public AbstractFixedFormatter()
parse
public T parse(java.lang.String value,
FormatInstructions instructions)
- Specified by:
parse in interface FixedFormatter<T>
format
public java.lang.String format(T value,
FormatInstructions instructions)
- Specified by:
format in interface FixedFormatter<T>
asObject
public abstract T asObject(java.lang.String string,
FormatInstructions instructions)
asString
public abstract java.lang.String asString(T obj,
FormatInstructions instructions)
Copyright © 2008 ancientprogramming.com. All Rights Reserved.