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