|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.citra.filter.Filter
com.citra.filter.ComparisonFilter
com.citra.filter.NumberFilter
com.citra.filter.FloatFilter
public class FloatFilter
A filter for Float values.
Field Summary | |
---|---|
protected float |
value
the float value the supplied objects are matched against. |
Fields inherited from class com.citra.filter.ComparisonFilter |
---|
comparison, EQ, GE, GT, LE, LT, NE |
Fields inherited from class com.citra.filter.Filter |
---|
acceptNull |
Constructor Summary | |
---|---|
FloatFilter()
Constructs a FloatFilter. |
|
FloatFilter(float f)
Constructs a FloatFilter. |
Method Summary | |
---|---|
boolean |
accept(float i)
Matches the float 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 |
setFloat(float i)
Sets the float 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.citra.filter.NumberFilter |
---|
getFilterPattern, setFilterPattern |
Methods inherited from class com.citra.filter.ComparisonFilter |
---|
getComparison, setComparison |
Methods inherited from class com.citra.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 float value
Constructor Detail |
---|
public FloatFilter()
public FloatFilter(float f)
Method Detail |
---|
public boolean accept(float i)
i
against the current filter.
i
- the float 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 setFloat(float i)
i
- the float value filter.public void setNumber(Number n)
setNumber
in class NumberFilter
n
- the new filter pattern to assign as a Number.
|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |