|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
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.NumberFilter
com.sciapp.filter.IntegerFilter
public class IntegerFilter
A filter for Integer values.
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, NE |
Fields inherited from class com.sciapp.filter.Filter |
---|
acceptNull |
Constructor Summary | |
---|---|
IntegerFilter()
Constructs an IntegerFilter. |
|
IntegerFilter(int i)
Constructs an IntegerFilter. |
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. |
boolean |
fromString(String str)
Parses the supplied string to a Number and returns a boolean indicating if the parsing was successful. |
Number |
getNumber()
Returns the Number object which is set as the filter pattern. |
void |
setInt(int i)
Sets the integer value used to match against Number objects. |
void |
setNumber(Number n)
Assigns a new Number object as the filter pattern. |
Methods inherited from class com.sciapp.filter.NumberFilter |
---|
getFilterPattern, setFilterPattern |
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 IntegerFilter()
public IntegerFilter(int i)
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 boolean fromString(String str)
fromString
in class NumberFilter
str
- the string to parse to a Number
public Number getNumber()
getNumber
in class NumberFilter
public void setInt(int i)
i
- the integer value filter.public void setNumber(Number n)
setNumber
in class NumberFilter
n
- the new filter pattern to assign as a Number.
|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |