edu.neu.ccs.filter
Class MaximumBoundFilter

java.lang.Object
  extended byedu.neu.ccs.filter.NumericFilter
      extended byedu.neu.ccs.filter.BoundFilter
          extended byedu.neu.ccs.filter.MaximumBoundFilter
All Implemented Interfaces:
Cloneable, Serializable, StringableFilter
Direct Known Subclasses:
MaximumBoundFilter.BigDecimal, MaximumBoundFilter.BigInteger, MaximumBoundFilter.Double, MaximumBoundFilter.Long

public class MaximumBoundFilter
extends BoundFilter

Filter that enforces an inclusive or exclusive numeric upper bound by throwing an exception when the data to be filtered violates the bound. Inner classes provide the functionality of both integer and real number upper bounds, of primitive or arbitrary precision.

Since:
1.0
Version:
2.2
See Also:
MinimumBoundFilter, Serialized Form

Nested Class Summary
static class MaximumBoundFilter.BigDecimal
          Maximum bound filter representing an real number upper bound of arbitrary precision.
static class MaximumBoundFilter.BigInteger
          Maximum bound filter representing an integer upper bound of arbitrary precision.
static class MaximumBoundFilter.Double
          Maximum bound filter representing a real number upper bound of primitive precision.
static class MaximumBoundFilter.Long
          Maximum bound filter representing an integer upper bound of primitive precision.
 
Field Summary
static String MAXIMUM
          Bound property name for the maximum property.
 
Fields inherited from class edu.neu.ccs.filter.BoundFilter
inclusive, INCLUSIVE
 
Fields inherited from class edu.neu.ccs.filter.NumericFilter
changeAdapter
 
Constructor Summary
MaximumBoundFilter(boolean isInclusive)
          Constructs an inclusive or exclusive maximum bound filter.
 
Methods inherited from class edu.neu.ccs.filter.BoundFilter
isInclusive, setInclusive
 
Methods inherited from class edu.neu.ccs.filter.NumericFilter
addPropertyChangeListener, addPropertyChangeListener, filterStringable, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAXIMUM

public static final String MAXIMUM
Bound property name for the maximum property.

See Also:
Constant Field Values
Constructor Detail

MaximumBoundFilter

public MaximumBoundFilter(boolean isInclusive)
Constructs an inclusive or exclusive maximum bound filter.

Parameters:
isInclusive - whether or not the bound is inclusive