Class Shorts.ShortConverter

java.lang.Object
com.google.common.base.Converter<String,Short>
com.google.common.primitives.Shorts.ShortConverter
All Implemented Interfaces:
Function<String,Short>, Serializable, Function<String,Short>
Enclosing class:
Shorts

private static final class Shorts.ShortConverter extends Converter<String,Short> implements Serializable
  • Field Details

  • Constructor Details

    • ShortConverter

      private ShortConverter()
  • Method Details

    • doForward

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

      protected String doBackward(Short 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,Short>
      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()