Class Ints.IntConverter

  • All Implemented Interfaces:
    Function<java.lang.String,​java.lang.Integer>, java.io.Serializable
    Enclosing class:
    Ints

    private static final class Ints.IntConverter
    extends Converter<java.lang.String,​java.lang.Integer>
    implements java.io.Serializable
    • Constructor Detail

      • IntConverter

        private IntConverter()
    • Method Detail

      • doForward

        protected java.lang.Integer doForward​(java.lang.String value)
        Description copied from class: Converter
        Returns a representation of a as an instance of type B. If a cannot be converted, an unchecked exception (such as IllegalArgumentException) should be thrown.
        Specified by:
        doForward in class Converter<java.lang.String,​java.lang.Integer>
        Parameters:
        value - the instance to convert; will never be null
        Returns:
        the converted instance; must not be null
      • doBackward

        protected java.lang.String doBackward​(java.lang.Integer value)
        Description copied from class: Converter
        Returns a representation of b as an instance of type A. If b cannot be converted, an unchecked exception (such as IllegalArgumentException) should be thrown.
        Specified by:
        doBackward in class Converter<java.lang.String,​java.lang.Integer>
        Parameters:
        value - the instance to convert; will never be null
        Returns:
        the converted instance; must not be null
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • readResolve

        private java.lang.Object readResolve()