Interface ToStringConverter<T>

  • Type Parameters:
    T - the type of the converter
    All Known Subinterfaces:
    StringConverter<T>, TypedStringConverter<T>

    public interface ToStringConverter<T>
    Interface defining conversion to a String.

    ToStringConverter is an interface and must be implemented with care. Implementations must be immutable and thread-safe.

    • Method Detail

      • convertToString

        String convertToString​(T object)
        Converts the specified object to a String.
        Parameters:
        object - the object to convert, not null
        Returns:
        the converted string, may be null but generally not