com.ancientprogramming.fixedformat4j.format
Class AbstractFixedFormatter<T>

java.lang.Object
  extended by 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

Constructor Summary
AbstractFixedFormatter()
           
 
Method Summary
abstract  T asObject(java.lang.String string, FormatInstructions instructions)
           
abstract  java.lang.String asString(T obj, FormatInstructions instructions)
           
 java.lang.String format(T value, FormatInstructions instructions)
           
 T parse(java.lang.String value, FormatInstructions instructions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFixedFormatter

public AbstractFixedFormatter()
Method Detail

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.