Class Ints.IntConverter

java.lang.Object
com.google.common.base.Converter<String,Integer>
com.google.common.primitives.Ints.IntConverter
All Implemented Interfaces:
Function<String,Integer>, Serializable, Function<String,Integer>
Enclosing class:
Ints

private static final class Ints.IntConverter extends Converter<String,Integer> implements Serializable
  • Field Details

  • Constructor Details

    • IntConverter

      private IntConverter()
  • Method Details

    • doForward

      protected Integer doForward(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<String,Integer>
      Parameters:
      value - the instance to convert; will never be null
      Returns:
      the converted instance; must not be null
    • doBackward

      protected String doBackward(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<String,Integer>
      Parameters:
      value - the instance to convert; will never be null
      Returns:
      the converted instance; must not be null
    • toString

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

      private Object readResolve()