tip.util
Class DefaultStringifier<T>

java.lang.Object
  extended by tip.util.DefaultStringifier<T>
Type Parameters:
T - the type for which the stringifier applies
All Implemented Interfaces:
Stringifier<T>

public class DefaultStringifier<T>
extends Object
implements Stringifier<T>

DefaultStringifier implements the Stringifier by calling the Object.toString() method.

Author:
Johnni Winther, jw@brics.dk

Constructor Summary
DefaultStringifier()
           
 
Method Summary
 String toString(T t)
          Returns a textual representation of t.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultStringifier

public DefaultStringifier()
Method Detail

toString

public String toString(T t)
Returns a textual representation of t.

Specified by:
toString in interface Stringifier<T>
Parameters:
t - the object for which a textual representation is returned
Returns:
a textual representation of t