org.apache.commons.convert
Class GenericToStringConverter<S>
java.lang.Object
org.apache.commons.convert.AbstractConverter<S,String>
org.apache.commons.convert.GenericToStringConverter<S>
- All Implemented Interfaces:
- Converter<S,String>, ConverterLoader
public class GenericToStringConverter<S>
- extends AbstractConverter<S,String>
An object that converts any object to a String
by calling the object's toString
method..
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenericToStringConverter
public GenericToStringConverter(Class<S> sourceClass)
convert
public String convert(S obj)
throws ConversionException
- Description copied from interface:
Converter
- Converts
obj
to T
.
- Parameters:
obj
- The source Object
to convert
- Returns:
- The converted
Object
- Throws:
ConversionException
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.