Class StringConverter.DefaultConverter

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String asString​(java.lang.String what)
      Convert type to string.
      java.lang.String fromString​(java.lang.String what)
      Convert type from string.
      java.lang.String max()
      Retrieve maximal element.
      java.lang.String min()
      Retrieve minimal element
      • Methods inherited from class java.lang.Object

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

      • DefaultConverter

        public DefaultConverter()
    • Method Detail

      • asString

        public java.lang.String asString​(java.lang.String what)
        Description copied from interface: StringConverter
        Convert type to string.
        Specified by:
        asString in interface StringConverter<java.lang.String>
        Parameters:
        what - input type
        Returns:
        string representation of what
      • fromString

        @Nullable
        public java.lang.String fromString​(java.lang.String what)
        Description copied from interface: StringConverter
        Convert type from string.
        Specified by:
        fromString in interface StringConverter<java.lang.String>
        Parameters:
        what - string representation
        Returns:
        the original object
      • max

        public java.lang.String max()
        Description copied from interface: StringConverter
        Retrieve maximal element.
        Specified by:
        max in interface StringConverter<java.lang.String>
        Returns:
        instance of maximal object
      • min

        public java.lang.String min()
        Description copied from interface: StringConverter
        Retrieve minimal element
        Specified by:
        min in interface StringConverter<java.lang.String>
        Returns:
        instance of minimal object