edu.neu.ccs.filter
Class MinimumBoundFilter.Long
java.lang.Object
edu.neu.ccs.filter.NumericFilter
edu.neu.ccs.filter.BoundFilter
edu.neu.ccs.filter.MinimumBoundFilter
edu.neu.ccs.filter.MinimumBoundFilter.Long
- All Implemented Interfaces:
- Cloneable, Serializable, StringableFilter
- Enclosing class:
- MinimumBoundFilter
- public static class MinimumBoundFilter.Long
- extends MinimumBoundFilter
Minimum bound filter representing
an integer lower bound of primitive precision.
- Version:
- 2.1
- See Also:
- Serialized Form
|
Field Summary |
protected long |
minimum
The minimum bound for the range. |
|
Constructor Summary |
MinimumBoundFilter.Long(long min)
Constructs an inclusive range
bounded by the given minimum value. |
MinimumBoundFilter.Long(long min,
boolean isInclusive)
Constructs an inclusive or exclusive range
bounded by the given minimum value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
minimum
protected long minimum
- The minimum bound for the range.
MinimumBoundFilter.Long
public MinimumBoundFilter.Long(long min)
- Constructs an inclusive range
bounded by the given minimum value.
- Parameters:
min - the minimum value for the range
MinimumBoundFilter.Long
public MinimumBoundFilter.Long(long min,
boolean isInclusive)
- Constructs an inclusive or exclusive range
bounded by the given minimum value.
- Parameters:
min - the minimum 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
setMinimum
public void setMinimum(long min)
- Sets the minimum bound for the range
to the given value.
- Parameters:
min - the desired minimum bound- See Also:
getMinimum()
getMinimum
public long getMinimum()
- Returns the minimum bound for this range.
- See Also:
setMinimum(long)