|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.mp3dings.utils.Bean
net.sourceforge.mp3dings.filter.FilterBean
net.sourceforge.mp3dings.filter.NumericFilter
public class NumericFilter
A filter that accepts or rejects a numeric value depending on whether this value is inside or outside a given numeric range.
| Field Summary | |
|---|---|
static boolean |
EXCLUDE
|
static boolean |
INCLUDE
|
| Fields inherited from class net.sourceforge.mp3dings.utils.Bean |
|---|
L_NO_ID, NO_ID, PROPERTY_ID, PROPERTY_NAME |
| Constructor Summary | |
|---|---|
NumericFilter()
Default constructor. |
|
NumericFilter(int lbound,
int ubound,
boolean incl)
Constructs a new NumericFilter for the given field, with the given bounds and the given inclusion behaviour. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
Object |
filter(Object val)
Compares val to the filter bounds if val is a number. |
int[] |
getBounds()
Queries the bounds of this filter. |
boolean |
getInclude()
Returns whether this filter currently accepts or rejects numbers inside the given numeric range. |
int |
getLowerBound()
|
int |
getUpperBound()
|
int |
hashCode()
|
static Bean |
load(Preferences pref,
String key)
|
void |
setBounds(int lbound,
int ubound)
Sets the filter bounds. |
void |
setInclude(boolean incl)
Sets whether this filter accepts (INCLUDE) or rejects (EXCLUDE) numbers inside the given numeric range. |
void |
setLowerBound(int lowerBound)
|
void |
setUpperBound(int upperBound)
|
| Methods inherited from class net.sourceforge.mp3dings.utils.Bean |
|---|
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getConstraints, getId, getName, getPropertyChangeListeners, getPropertyChangeListeners, isSavable, load, removePropertyChangeListener, removePropertyChangeListener, save, save, setId, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final boolean INCLUDE
setInclude(boolean),
Constant Field Valuespublic static final boolean EXCLUDE
setInclude(boolean),
Constant Field Values| Constructor Detail |
|---|
public NumericFilter()
NumericFilter(int, int, boolean)
public NumericFilter(int lbound,
int ubound,
boolean incl)
lbound - Lower bound.ubound - Upper bound.incl - Sets whether this filter accepts or rejects numbers in
the open range (lbound, ubound).setBounds(int, int),
setInclude(boolean)| Method Detail |
|---|
public static Bean load(Preferences pref,
String key)
public void setBounds(int lbound,
int ubound)
lbound - Lower bound.ubound - Upper bound.getBounds()public int[] getBounds()
setBounds(int, int)public Object filter(Object val)
filter in interface Filterfilter in class FilterBeanval - the value to filter
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic void setLowerBound(int lowerBound)
public int getLowerBound()
public void setUpperBound(int upperBound)
public int getUpperBound()
public boolean getInclude()
setInclude(boolean)public void setInclude(boolean incl)
incl - one of INCLUDE and EXCLUDEgetInclude()
|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||