public final class ByteConverter extends NumberConverter.IntegerType<Byte>
NumberConverter
implementation for the
java.lang.Byte
type.NumberPattern
,
ConverterFactory.forByte(String)
NumberConverter.DecimalType<V extends Number>, NumberConverter.IntegerType<V extends Number>
Modifier and Type | Field and Description |
---|---|
static ByteConverter |
OBJECT
ByteConverter object type instance. |
static ByteConverter |
SIMPLE
ByteConverter primitive type instance. |
pattern
Modifier and Type | Method and Description |
---|---|
protected Byte |
doDecodeDefault(String value)
Converts default string representation of byte value into
java.lang.Byte object. |
Class<Byte> |
getType()
Returns
java.lang.Byte type. |
getFormat
appendMessageArguments, doDecode, doEncode, doEncodeDefault
decode, encode
getMessageTemplate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMessageTemplate
public static final ByteConverter SIMPLE
ByteConverter
primitive type instance.public static final ByteConverter OBJECT
ByteConverter
object type instance.protected Byte doDecodeDefault(String value)
java.lang.Byte
object.doDecodeDefault
in class NumberConverter<Byte>
value
- Default string representation of byte value.java.lang.Byte
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.