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.Constructor and Description |
---|
NumberFilterHandler(Parser<V> 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.
|
public 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 © 2015. All rights reserved.