com.sciapp.filter
Class NumberFilter
java.lang.Object
com.sciapp.filter.Filter
com.sciapp.filter.ComparisonFilter
com.sciapp.filter.NumberFilter
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- DoubleFilter, FloatFilter, IntegerFilter, LongFilter
public abstract class NumberFilter
- extends ComparisonFilter
The superclass for filters that deal with Numbers.
- See Also:
- Serialized Form
|
Constructor Summary |
NumberFilter()
Constructs a NumberFilter object. |
|
Method Summary |
abstract boolean |
fromString(String str)
Parses the supplied string to a Number and returns a boolean indicating
if the parsing was successful. |
abstract Number |
getNumber()
Returns the Number object which is set as the filter pattern. |
abstract void |
setNumber(Number n)
Assigns a new Number object as the filter pattern. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NumberFilter
public NumberFilter()
- Constructs a NumberFilter object.
fromString
public abstract boolean fromString(String str)
- Parses the supplied string to a Number and returns a boolean indicating
if the parsing was successful.
- Parameters:
str - the string to parse to a Number
- Returns:
- true if the supplied string was successfully parsed, false otherwise.
getNumber
public abstract Number getNumber()
- Returns the Number object which is set as the filter pattern.
- Returns:
- the filter pattern as a Number
setNumber
public abstract void setNumber(Number n)
- Assigns a new Number object as the filter pattern.
- Parameters:
n - the new filter pattern to assign as a Number.