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