public class NumberFilterHandler<V extends Number> extends FilterHandler<V>
FilterHandler
that provides support for Number
values
and uses a property editor to convert a string representation to a number.Modifier and Type | Field and Description |
---|---|
protected <any> |
propertyEditor
The
Parser (probably a NumberPropertyEditor ) this
NumberFilterHandler uses to perform the conversion. |
Constructor and Description |
---|
NumberFilterHandler(<any> propertyEditor)
Creates a number filter handler that uses the given property editor to
convert a string representation to a number.
|
Modifier and Type | Method and Description |
---|---|
V |
convertToObject(String value)
Converts a filter value in string representation to native representation.
|
String |
convertToString(V object)
Converts a filter value in native representation to string representation.
|
protected <any> propertyEditor
Parser
(probably a NumberPropertyEditor
) this
NumberFilterHandler
uses to perform the conversion.public NumberFilterHandler(<any> propertyEditor)
propertyEditor
- the property editor to use to do the conversionpublic V convertToObject(String value)
FilterHandler
convertToObject
in class FilterHandler<V extends Number>
value
- the string representation of the filter valuepublic String convertToString(V object)
FilterHandler
convertToString
in class FilterHandler<V extends Number>
object
- the native representation of the filter valueCopyright © 2018. All rights reserved.