|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--edu.neu.ccs.filter.NumericFilter
|
+--edu.neu.ccs.filter.RangeFilter
|
+--edu.neu.ccs.filter.RangeFilter.Double
Range filter representing real number upper and lower bounds of primitive precision.
| Nested Class Summary |
| Nested classes inherited from class edu.neu.ccs.filter.RangeFilter |
RangeFilter.BigDecimal, RangeFilter.BigInteger, RangeFilter.Double, RangeFilter.Long |
| Field Summary |
| Fields inherited from class edu.neu.ccs.filter.RangeFilter |
maximum, MAXIMUM, MAXIMUM_INCLUSIVE, minimum, MINIMUM, MINIMUM_INCLUSIVE |
| Fields inherited from class edu.neu.ccs.filter.NumericFilter |
changeAdapter |
| Constructor Summary | |
RangeFilter.Double(double min,
boolean minInclusive,
double max,
boolean maxInclusive)
Constructs a range bounded by the given values with the given individual exclusivity. |
|
RangeFilter.Double(double min,
double max)
Constructs an inclusive range bounded by the given values. |
|
| Method Summary | |
Stringable |
filterStringable(Stringable obj)
Returns the given object if it satisfies the bound for this range. |
double |
getMaximum()
Returns the maximum bound for this range. |
protected MaximumBoundFilter.Double |
getMaximumFilter()
Returns the maximum bound filter used by this range filter. |
double |
getMinimum()
Returns the minimum bound for this range. |
protected MinimumBoundFilter.Double |
getMinimumFilter()
Returns the minimum bound filter used by this range filter. |
boolean |
isMaximumInclusive()
Returns whether or not the maximum bound is inclusive. |
boolean |
isMinimumInclusive()
Returns whether or not the minimum bound is inclusive. |
void |
setMaximum(double max)
Sets the maximum bound for the range to the given value. |
void |
setMaximumInclusive(boolean inclusive)
Sets whether or not the maximum bound is inclusive to the given value. |
void |
setMinimum(double min)
Sets the minimum bound for the range to the given value. |
void |
setMinimumInclusive(boolean inclusive)
Sets whether or not the minimum bound is inclusive to the given value. |
| Methods inherited from class edu.neu.ccs.filter.RangeFilter |
propertyChange |
| Methods inherited from class edu.neu.ccs.filter.NumericFilter |
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RangeFilter.Double(double min,
double max)
min - the minimum value for the rangemax - the maximum value for the range
public RangeFilter.Double(double min,
boolean minInclusive,
double max,
boolean maxInclusive)
min - the minimum value for the rangeminInclusive - whether or not the minimum value
is inclusivemax - the maximum value for the range| Method Detail |
public Stringable filterStringable(Stringable obj)
throws FilterException
filterStringable in interface StringableFilterfilterStringable in class NumericFilterobj - the object to be filtered
FilterException - if the object
is out of boundspublic void setMinimum(double min)
min - the desired minimum boundgetMinimum()public double getMinimum()
setMinimum(double)public void setMaximum(double max)
max - the desired maximum boundgetMaximum()public double getMaximum()
setMaximum(double)public void setMinimumInclusive(boolean inclusive)
inclusive - whether or not the bound is inclusiveisMinimumInclusive()public boolean isMinimumInclusive()
setMinimumInclusive(boolean)public void setMaximumInclusive(boolean inclusive)
inclusive - whether or not the bound is inclusiveisMaximumInclusive()public boolean isMaximumInclusive()
setMaximumInclusive(boolean)protected MinimumBoundFilter.Double getMinimumFilter()
protected MaximumBoundFilter.Double getMaximumFilter()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||