|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sciapp.filter.Filter
com.sciapp.filter.ComparisonFilter
com.sciapp.filter.NumericFilter
public class NumericFilter
A numeric filter that matches the integer part of the Number objects supplied.
Field Summary | |
---|---|
protected int |
value
the integer value the supplied objects are matched against. |
Fields inherited from class com.sciapp.filter.ComparisonFilter |
---|
comparison, EQ, GE, GT, LE, LT |
Fields inherited from class com.sciapp.filter.Filter |
---|
acceptNull |
Constructor Summary | |
---|---|
NumericFilter()
Constructs a NumericFilter with an EQUAL_TO mode and a value of 0 as the integer value to match against. |
Method Summary | |
---|---|
boolean |
accept(int i)
Matches the integer value i against the current filter. |
boolean |
accept(Object value)
Decides whether to accept the value supplied. |
Object |
getFilterPattern()
Returns the object used as the filter pattern. |
int |
getNumber()
Returns the integer value used to match against Number objects. |
void |
setFilterPattern(Object filter)
Sets an object as the filter pattern. |
void |
setNumber(int i)
Sets the integer value used to match against Number objects. |
Methods inherited from class com.sciapp.filter.ComparisonFilter |
---|
getComparison, setComparison |
Methods inherited from class com.sciapp.filter.Filter |
---|
getAcceptNull, setAcceptNull |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int value
Constructor Detail |
---|
public NumericFilter()
Method Detail |
---|
public boolean accept(int i)
i
against the current filter.
i
- the integer to match
public boolean accept(Object value)
accept
in class Filter
value
- the object we want to decide if it will be filtered or not.
public int getNumber()
public void setNumber(int i)
i
- the integer value filter.public void setFilterPattern(Object filter)
filter
to the appropriate object.
setFilterPattern
in class Filter
filter
- the object to set as the filter patternpublic Object getFilterPattern()
getFilterPattern
in class Filter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |