org.otfeed.support
Interface IFormat<T>

All Known Implementing Classes:
BufferFormat, DateFormat

public interface IFormat<T>

Contract for formatters that know how to print to and parse from a string.


Method Summary
 java.lang.String format(T obj)
          Formats an object to a string.
 T parse(java.lang.String val)
          Parses object from a string.
 

Method Detail

format

java.lang.String format(T obj)
Formats an object to a string.

Parameters:
obj - object to be formatted.
Returns:
string.

parse

T parse(java.lang.String val)
Parses object from a string.

Parameters:
val - string representation of an object.
Returns:
parsed object.


Copyright © 2007 Mike Kroutikov. All Rights Reserved.