Class ToStringConverter<T>
- java.lang.Object
-
- org.codehaus.mojo.jaxb2.shared.filters.pattern.ToStringConverter<T>
-
- All Implemented Interfaces:
StringConverter<T>
public class ToStringConverter<T> extends java.lang.Object implements StringConverter<T>
Trivial converter using thetoString()
method to convert a T object to a String.- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description ToStringConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
convert(T toConvert)
Converts the supplied T object to a String.
-
-
-
Method Detail
-
convert
public java.lang.String convert(T toConvert)
Converts the supplied T object to a String.- Specified by:
convert
in interfaceStringConverter<T>
- Parameters:
toConvert
- The T object to convert to a string. Notnull
.- Returns:
- The string form of the toConvert object.
-
-