edu.neu.ccs.filter
Class MaximumBoundFilter.Long
java.lang.Object
edu.neu.ccs.filter.NumericFilter
edu.neu.ccs.filter.BoundFilter
edu.neu.ccs.filter.MaximumBoundFilter
edu.neu.ccs.filter.MaximumBoundFilter.Long
- All Implemented Interfaces:
- Cloneable, Serializable, StringableFilter
- Enclosing class:
- MaximumBoundFilter
- public static class MaximumBoundFilter.Long
- extends MaximumBoundFilter
Maximum bound filter representing
an integer upper bound of primitive precision.
- Since:
- 1.0
- Version:
- 2.1
- See Also:
- Serialized Form
|
Field Summary |
protected long |
maximum
The maximum bound for the range. |
|
Constructor Summary |
MaximumBoundFilter.Long(long max)
Constructs an inclusive range
bounded by the given maximum value. |
MaximumBoundFilter.Long(long max,
boolean isInclusive)
Constructs an inclusive or exclusive range
bounded by the given maximum value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
maximum
protected long maximum
- The maximum bound for the range.
MaximumBoundFilter.Long
public MaximumBoundFilter.Long(long max)
- Constructs an inclusive range
bounded by the given maximum value.
- Parameters:
max - the maximum value for the range
MaximumBoundFilter.Long
public MaximumBoundFilter.Long(long max,
boolean isInclusive)
- Constructs an inclusive or exclusive range
bounded by the given maximum value.
- Parameters:
max - the maximum value for the rangeisInclusive - whether or not the range is inclusive
filterStringable
public Stringable filterStringable(Stringable obj)
throws FilterException
- Returns the given object
if it satisfies the bound for this range.
- Specified by:
filterStringable in interface StringableFilter- Overrides:
filterStringable in class NumericFilter
- Parameters:
obj - the object to be filtered
- Throws:
FilterException - if the object
is out of bounds
setMaximum
public void setMaximum(long max)
- Sets the maximum bound for the range
to the given value.
- Parameters:
max - the desired maximum bound- See Also:
getMaximum()
getMaximum
public long getMaximum()
- Returns the maximum bound for this range.
- See Also:
setMaximum(long)