public final class CharacterConverter extends AbstractConverter<Character>
Converter
implementation for the
java.lang.Character
type.Modifier and Type | Field and Description |
---|---|
static CharacterConverter |
OBJECT
CharacterConverter object type instance. |
static CharacterConverter |
SIMPLE
CharacterConverter primitive type instance. |
Modifier and Type | Method and Description |
---|---|
protected <T> Character |
doDecode(String value,
ValidationContext<T> context)
Converts string representation of character value into
java.lang.Character object. |
Class<Character> |
getType()
Returns
java.lang.Character type. |
decode, doEncode, encode
appendMessageArguments, getMessageTemplate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
appendMessageArguments, getMessageTemplate
public static final CharacterConverter SIMPLE
CharacterConverter
primitive type instance.public static final CharacterConverter OBJECT
CharacterConverter
object type instance.public Class<Character> getType()
java.lang.Character
type.java.lang.Character
type.protected <T> Character doDecode(String value, ValidationContext<T> context)
java.lang.Character
object.doDecode
in class AbstractConverter<Character>
T
- The type of validated entity.value
- String representation of character value.context
- Validation context.java.lang.Character
object.MalformedValueException
- if the specified string could not be
parsed as a character.Copyright © 2011–2020 FoxLabs. All rights reserved.