gov.sandia.cognition.data.convert
Class ObjectToStringConverter
java.lang.Object
gov.sandia.cognition.util.AbstractCloneableSerializable
gov.sandia.cognition.data.convert.AbstractDataConverter<Object,String>
gov.sandia.cognition.data.convert.ObjectToStringConverter
- All Implemented Interfaces:
- DataConverter<Object,String>, Evaluator<Object,String>, CloneableSerializable, Serializable, Cloneable
public class ObjectToStringConverter
- extends AbstractDataConverter<Object,String>
Converts an Object
to a String
using the toString
method.
- Since:
- 3.0
- Author:
- Justin Basilico
- See Also:
- Serialized Form
Method Summary |
String |
evaluate(Object input)
Converts the given Object to an String by calling the
toString method. |
ObjectToStringConverter
public ObjectToStringConverter()
- Creates a new
ObjectToStringConverter
.
evaluate
public String evaluate(Object input)
- Converts the given
Object
to an String
by calling the
toString
method.
- Parameters:
input
- The input to convert.
- Returns:
- The String representation of that input. If null is passed in,
null is returned.