com.benfante.utils.string
Class ObjectToStringWorker

java.lang.Object
  extended by com.benfante.utils.string.ObjectToStringWorker
All Implemented Interfaces:
ToStringWorker

public class ObjectToStringWorker
extends java.lang.Object
implements ToStringWorker

A ToStringWorker that produces output like the toString method of the java.lang.Object class.

Author:
Lucio Benfante lucio@benfante.com

Constructor Summary
ObjectToStringWorker()
          Creates a new instance of ObjectToStringWorker
 
Method Summary
 java.lang.String toString(java.lang.Object o)
          Returns the String rappresentation of the passed object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectToStringWorker

public ObjectToStringWorker()
Creates a new instance of ObjectToStringWorker

Method Detail

toString

public java.lang.String toString(java.lang.Object o)
Returns the String rappresentation of the passed object.

Specified by:
toString in interface ToStringWorker
Parameters:
o - The object to be rappresented in String.
Returns:
The String rappresentation of the passed object.


Copyright © 2007. All Rights Reserved.