public class LongTypeConverter extends NumberTypeConverterSupport implements TypeConverter<java.lang.Long>
Constructor and Description |
---|
LongTypeConverter() |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
convert(java.lang.String input,
java.lang.Class<? extends java.lang.Long> targetType,
java.util.Collection<ValidationError> errors)
Convert a String to the target type supported by this converter.
|
protected java.text.NumberFormat[] |
getNumberFormats()
Overridden to return integer instances instead.
|
getLocale, parse, preprocess, setLocale
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setLocale
public java.lang.Long convert(java.lang.String input, java.lang.Class<? extends java.lang.Long> targetType, java.util.Collection<ValidationError> errors)
TypeConverter
convert
in interface TypeConverter<java.lang.Long>
input
- errors
- targetType
- the Class representing the type of the property to which the return
value of the conversion will be assigned. In many cases this can be ignored as
converters will return a single type more often than not.protected java.text.NumberFormat[] getNumberFormats()
getNumberFormats
in class NumberTypeConverterSupport
? Copyright 2005-2006, Stripes Development Team.