|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.neu.ccs.filter.NumericFilter
edu.neu.ccs.filter.RangeFilter
edu.neu.ccs.filter.RangeFilter.Long
Range filter representing integer 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.Long(long min,
boolean minInclusive,
long max,
boolean maxInclusive)
Constructs a range bounded by the given values with the given individual exclusivity. |
|
RangeFilter.Long(long min,
long 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. |
long |
getMaximum()
Returns the maximum bound for this range. |
protected MaximumBoundFilter.Long |
getMaximumFilter()
Returns the maximum bound filter used by this range filter. |
long |
getMinimum()
Returns the minimum bound for this range. |
protected MinimumBoundFilter.Long |
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(long 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(long 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.Long(long min,
long max)
min - the minimum value for the rangemax - the maximum value for the range
public RangeFilter.Long(long min,
boolean minInclusive,
long max,
boolean maxInclusive)
min - the minimum value for the rangeminInclusive - whether or not the minimum value
is inclusivemax - the maximum value for the rangemaxInclusive - whether or not the maximum value
is inclusive| 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(long min)
min - the desired minimum boundgetMinimum()public long getMinimum()
setMinimum(long)public void setMaximum(long max)
max - the desired maximum boundgetMaximum()public long getMaximum()
setMaximum(long)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.Long getMinimumFilter()
protected MaximumBoundFilter.Long getMaximumFilter()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||