Class Longs.LongConverter

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

    private static final class Longs.LongConverter
    extends Converter<java.lang.String,​java.lang.Long>
    implements java.io.Serializable
    • Constructor Detail

      • LongConverter

        private LongConverter()
    • Method Detail

      • doForward

        protected java.lang.Long 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.Long>
        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.Long 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.Long>
        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()