Class CharacterConverter
- java.lang.Object
-
- org.apache.wicket.util.convert.converter.AbstractConverter<java.lang.Character>
-
- org.apache.wicket.util.convert.converter.CharacterConverter
-
- All Implemented Interfaces:
java.io.Serializable,IConverter<java.lang.Character>,IClusterable
public class CharacterConverter extends AbstractConverter<java.lang.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<java.lang.Character>INSTANCEThe 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 java.lang.CharacterconvertToObject(java.lang.String value, java.util.Locale locale)Converts the givenStringvalueprotected java.lang.Class<java.lang.Character>getTargetType()-
Methods inherited from class org.apache.wicket.util.convert.converter.AbstractConverter
convertToString, newConversionException, parse
-
-
-
-
Field Detail
-
INSTANCE
public static final IConverter<java.lang.Character> INSTANCE
The singleton instance for a character converter
-
-
Method Detail
-
convertToObject
public java.lang.Character convertToObject(java.lang.String value, java.util.Locale locale)Description copied from interface:IConverterConverts the givenStringvalue- 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 java.lang.Class<java.lang.Character> getTargetType()
- Specified by:
getTargetTypein classAbstractConverter<java.lang.Character>- Returns:
- The target type of this type converter
- See Also:
AbstractConverter.getTargetType()
-
-