|
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.DoubleFilter
public class DoubleFilter
A filter for Double values.
Field Summary | |
---|---|
protected double |
value
the double 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 | |
---|---|
DoubleFilter()
Constructs a DoubleFilter. |
|
DoubleFilter(double d)
Constructs a DoubleFilter. |
Method Summary | |
---|---|
boolean |
accept(double i)
Matches the double 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 |
setDouble(double i)
Sets the double 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 double value
Constructor Detail |
---|
public DoubleFilter()
public DoubleFilter(double d)
Method Detail |
---|
public boolean accept(double i)
i
against the current filter.
i
- the double 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 setDouble(double i)
i
- the double 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 |