Class Doubles.DoubleConverter

java.lang.Object
com.google.common.base.Converter<String,Double>
com.google.common.primitives.Doubles.DoubleConverter
All Implemented Interfaces:
Function<String,Double>, Serializable, Function<String,Double>
Enclosing class:
Doubles

private static final class Doubles.DoubleConverter extends Converter<String,Double> implements Serializable
  • Field Details

  • Constructor Details

    • DoubleConverter

      private DoubleConverter()
  • Method Details

    • doForward

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

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