Class ShortConverter
- java.lang.Object
-
- org.apache.wicket.util.convert.converter.AbstractConverter<N>
-
- org.apache.wicket.util.convert.converter.AbstractNumberConverter<I>
-
- org.apache.wicket.util.convert.converter.AbstractIntegerConverter<Short>
-
- org.apache.wicket.util.convert.converter.ShortConverter
-
- All Implemented Interfaces:
Serializable
,IConverter<Short>
,IClusterable
public class ShortConverter extends AbstractIntegerConverter<Short>
Converts from Object to Short.- Author:
- Eelco Hillenius, Jonathan Locke
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static IConverter<Short>
INSTANCE
The singleton instance for a short converter
-
Constructor Summary
Constructors Constructor Description ShortConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Short
convertToObject(String value, Locale locale)
Converts the givenString
valueprotected Class<Short>
getTargetType()
-
Methods inherited from class org.apache.wicket.util.convert.converter.AbstractIntegerConverter
newNumberFormat
-
Methods inherited from class org.apache.wicket.util.convert.converter.AbstractNumberConverter
convertToString, getNumberFormat, parse
-
Methods inherited from class org.apache.wicket.util.convert.converter.AbstractConverter
newConversionException, parse
-
-
-
-
Field Detail
-
INSTANCE
public static final IConverter<Short> INSTANCE
The singleton instance for a short converter
-
-
Constructor Detail
-
ShortConverter
public ShortConverter()
-
-
Method Detail
-
convertToObject
public Short 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<Short> getTargetType()
- Specified by:
getTargetType
in classAbstractConverter<Short>
- Returns:
- The target type of this type converter
- See Also:
AbstractConverter.getTargetType()
-
-