Package com.google.common.primitives
Class Floats.FloatConverter
- Enclosing class:
Floats
private static final class Floats.FloatConverter
extends Converter<String,Float>
implements Serializable
-
Field Details
-
INSTANCE
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
FloatConverter
private FloatConverter()
-
-
Method Details
-
doForward
Description copied from class:Converter
Returns a representation ofa
as an instance of typeB
. Ifa
cannot be converted, an unchecked exception (such asIllegalArgumentException
) should be thrown. -
doBackward
Description copied from class:Converter
Returns a representation ofb
as an instance of typeA
. Ifb
cannot be converted, an unchecked exception (such asIllegalArgumentException
) should be thrown.- Specified by:
doBackward
in classConverter<String,
Float> - Parameters:
value
- the instance to convert; will never be null- Returns:
- the converted instance; must not be null
-
toString
-
readResolve
-