Class Floats.FloatConverter

java.lang.Object
com.google.common.base.Converter<String,Float>
com.google.common.primitives.Floats.FloatConverter
All Implemented Interfaces:
Function<String,Float>, Serializable, Function<String,Float>
Enclosing class:
Floats

private static final class Floats.FloatConverter extends Converter<String,Float> implements Serializable
  • Field Details

  • Constructor Details

    • FloatConverter

      private FloatConverter()
  • Method Details

    • doForward

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

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