edu.neu.ccs.filter
Class MinimumBoundFilter.BigInteger

java.lang.Object
  extended byedu.neu.ccs.filter.NumericFilter
      extended byedu.neu.ccs.filter.BoundFilter
          extended byedu.neu.ccs.filter.MinimumBoundFilter
              extended byedu.neu.ccs.filter.MinimumBoundFilter.BigInteger
All Implemented Interfaces:
Cloneable, Serializable, StringableFilter
Enclosing class:
MinimumBoundFilter

public static class MinimumBoundFilter.BigInteger
extends MinimumBoundFilter

Minimum bound filter representing an integer lower bound of arbitrary precision.

Since:
1.0
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class edu.neu.ccs.filter.MinimumBoundFilter
MinimumBoundFilter.BigDecimal, MinimumBoundFilter.BigInteger, MinimumBoundFilter.Double, MinimumBoundFilter.Long
 
Field Summary
protected  BigInteger minimum
          The minimum bound for the range.
 
Fields inherited from class edu.neu.ccs.filter.MinimumBoundFilter
MINIMUM
 
Fields inherited from class edu.neu.ccs.filter.BoundFilter
inclusive, INCLUSIVE
 
Fields inherited from class edu.neu.ccs.filter.NumericFilter
changeAdapter
 
Constructor Summary
MinimumBoundFilter.BigInteger(BigInteger min)
          Constructs an inclusive range bounded by the given minimum value.
MinimumBoundFilter.BigInteger(BigInteger min, boolean isInclusive)
          Constructs an inclusive or exclusive range bounded by the given minimum value.
 
Method Summary
 Stringable filterStringable(Stringable obj)
          Returns the given object if it satisfies the bound for this range.
 BigInteger getMinimum()
          Returns the minimum bound for this range.
 void setMinimum(BigInteger min)
          Sets the minimum bound for the range to the given value.
 
Methods inherited from class edu.neu.ccs.filter.BoundFilter
isInclusive, setInclusive
 
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
 

Field Detail

minimum

protected BigInteger minimum
The minimum bound for the range.

Constructor Detail

MinimumBoundFilter.BigInteger

public MinimumBoundFilter.BigInteger(BigInteger min)
Constructs an inclusive range bounded by the given minimum value.

Parameters:
min - the minimum value for the range

MinimumBoundFilter.BigInteger

public MinimumBoundFilter.BigInteger(BigInteger min,
                                     boolean isInclusive)
Constructs an inclusive or exclusive range bounded by the given minimum value.

Parameters:
min - the minimum value for the range
isInclusive - whether or not the range is inclusive
Method Detail

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(BigInteger min)
Sets the minimum bound for the range to the given value. If null the value is not changed.

Parameters:
min - the desired minimum bound
See Also:
getMinimum()

getMinimum

public BigInteger getMinimum()
Returns the minimum bound for this range.

See Also:
setMinimum(BigInteger)