Class Doubles.DoubleConverter

  • All Implemented Interfaces:
    Function<java.lang.String,​java.lang.Double>, java.io.Serializable, java.util.function.Function<java.lang.String,​java.lang.Double>
    Enclosing class:
    Doubles

    private static final class Doubles.DoubleConverter
    extends Converter<java.lang.String,​java.lang.Double>
    implements java.io.Serializable
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private DoubleConverter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String doBackward​(java.lang.Double value)
      Returns a representation of b as an instance of type A.
      protected java.lang.Double doForward​(java.lang.String value)
      Returns a representation of a as an instance of type B.
      private java.lang.Object readResolve()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.function.Function

        andThen, compose
    • Constructor Detail

      • DoubleConverter

        private DoubleConverter()
    • Method Detail

      • doForward

        protected java.lang.Double 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.Double>
        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.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<java.lang.String,​java.lang.Double>
        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()