public final class FloatConverter extends NumberConverter.DecimalType<Float>
NumberConverter
implementation for the
java.lang.Float
type.NumberPattern
,
ConverterFactory.forFloat(String)
NumberConverter.DecimalType<V extends Number>, NumberConverter.IntegerType<V extends Number>
Modifier and Type | Field and Description |
---|---|
static FloatConverter |
OBJECT
FloatConverter object type instance. |
static FloatConverter |
SIMPLE
FloatConverter primitive type instance. |
pattern
Modifier and Type | Method and Description |
---|---|
protected Float |
doDecodeDefault(String value)
Converts default string representation of float value into
java.lang.Float object. |
Class<Float> |
getType()
Returns
java.lang.Float type. |
getFormat
appendMessageArguments, doDecode, doEncode, doEncodeDefault
decode, encode
getMessageTemplate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMessageTemplate
public static final FloatConverter SIMPLE
FloatConverter
primitive type instance.public static final FloatConverter OBJECT
FloatConverter
object type instance.protected Float doDecodeDefault(String value)
java.lang.Float
object.doDecodeDefault
in class NumberConverter<Float>
value
- Default string representation of float value.java.lang.Float
object.NumberFormatException
- if the specified string could not be
parsed as a decimal or value is out of range.Copyright © 2011–2020 FoxLabs. All rights reserved.