Interface StringConverter<T>

  • All Superinterfaces:
    java.io.Serializable
    All Known Implementing Classes:
    DateToLongConverter, StringConverter.DefaultConverter

    @ThreadSafe
    public interface StringConverter<T>
    extends java.io.Serializable
    A converter between a specified java type and String.
    • Method Detail

      • asString

        java.lang.String asString​(T what)
        Convert type to string.
        Parameters:
        what - input type
        Returns:
        string representation of what
      • fromString

        T fromString​(java.lang.String what)
        Convert type from string.
        Parameters:
        what - string representation
        Returns:
        the original object
      • max

        T max()
        Retrieve maximal element.
        Returns:
        instance of maximal object
      • min

        T min()
        Retrieve minimal element
        Returns:
        instance of minimal object