Class ToStringConverter<T>

  • All Implemented Interfaces:
    StringConverter<T>

    public class ToStringConverter<T>
    extends java.lang.Object
    implements StringConverter<T>
    Trivial converter using the toString() method to convert a T object to a String.
    Since:
    2.0
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ToStringConverter

        public ToStringConverter()
    • Method Detail

      • convert

        public java.lang.String convert​(T toConvert)
        Converts the supplied T object to a String.
        Specified by:
        convert in interface StringConverter<T>
        Parameters:
        toConvert - The T object to convert to a string. Not null.
        Returns:
        The string form of the toConvert object.