|
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. |
Object |
getFilterPattern()
Returns the object used as the filter pattern. |
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 |
setFilterPattern(Object filter)
Sets an object as the filter pattern. |
void |
setNumber(Number n)
Assigns a new Number object as the filter pattern. |
| 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 Filtervalue - the object we want to decide if it will be filtered or not.
public boolean fromString(String str)
fromString in class NumberFilterstr - the string to parse to a Number
public Object getFilterPattern()
getFilterPattern in class Filterpublic Number getNumber()
getNumber in class NumberFilterpublic void setDouble(double i)
i - the double value filter.public void setFilterPattern(Object filter)
filter to the appropriate object.
setFilterPattern in class Filterfilter - the object to set as the filter patternpublic void setNumber(Number n)
setNumber in class NumberFiltern - 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 | ||||||||