com.taco.text
Class DefaultStringToObjectConverter

java.lang.Object
  extended by com.taco.text.DefaultStringToObjectConverter
All Implemented Interfaces:
IStringToObjectConverter

public class DefaultStringToObjectConverter
extends java.lang.Object
implements IStringToObjectConverter

An implementation of IStringToObjectConverter that simply maps a String to the same value. Because this class has no state, it is implemented as a singleton.


Field Summary
static DefaultStringToObjectConverter instance
          The singleton instance of this class.
 
Constructor Summary
protected DefaultStringToObjectConverter()
          The sole constructor is protected because this class is a singleton.
 
Method Summary
 java.lang.Object toObject(java.lang.String s)
          Return the argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

public static final DefaultStringToObjectConverter instance
The singleton instance of this class.

Constructor Detail

DefaultStringToObjectConverter

protected DefaultStringToObjectConverter()
The sole constructor is protected because this class is a singleton.

Method Detail

toObject

public java.lang.Object toObject(java.lang.String s)
Return the argument.

Specified by:
toObject in interface IStringToObjectConverter