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 Object implements StringConverter<T>
Trivial converter using the toString() method to convert a T object to a String.
Since:
2.0
  • Constructor Details

    • ToStringConverter

      public ToStringConverter()
  • Method Details

    • convert

      public 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.