Class CharacterConverter
- java.lang.Object
-
- org.apache.wicket.util.convert.converter.AbstractConverter<Character>
-
- org.apache.wicket.util.convert.converter.CharacterConverter
-
- All Implemented Interfaces:
Serializable
,IConverter<Character>
,IClusterable
public class CharacterConverter extends AbstractConverter<Character>
Converts from Object to Character.- Author:
- Eelco Hillenius, Jonathan Locke
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static IConverter<Character>
INSTANCE
The singleton instance for a character converter
-
Constructor Summary
Constructors Constructor Description CharacterConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Character
convertToObject(String value, Locale locale)
Converts the givenString
valueprotected Class<Character>
getTargetType()
-
Methods inherited from class org.apache.wicket.util.convert.converter.AbstractConverter
convertToString, newConversionException, parse
-
-
-
-
Field Detail
-
INSTANCE
public static final IConverter<Character> INSTANCE
The singleton instance for a character converter
-
-
Constructor Detail
-
CharacterConverter
public CharacterConverter()
-
-
Method Detail
-
convertToObject
public Character convertToObject(String value, Locale locale)
Description copied from interface:IConverter
Converts the givenString
value- Parameters:
value
- The string value to convertlocale
- The locale used to convert the value- Returns:
- The converted value
- See Also:
IConverter.convertToObject(java.lang.String,Locale)
-
getTargetType
protected Class<Character> getTargetType()
- Specified by:
getTargetType
in classAbstractConverter<Character>
- Returns:
- The target type of this type converter
- See Also:
AbstractConverter.getTargetType()
-
-