edu.emory.mathcs.util.collections.ints
Class AbstractIntInterval.ConstrainedView

java.lang.Object
  extended byedu.emory.mathcs.util.collections.ints.AbstractIntCollection
      extended byedu.emory.mathcs.util.collections.ints.AbstractIntSet
          extended byedu.emory.mathcs.util.collections.ints.AbstractIntSortedSet
              extended byedu.emory.mathcs.util.collections.ints.AbstractIntInterval
                  extended byedu.emory.mathcs.util.collections.ints.AbstractIntInterval.ConstrainedView
All Implemented Interfaces:
IntCollection, IntInterval, IntSet, IntSortedSet
Enclosing class:
AbstractIntInterval

protected static class AbstractIntInterval.ConstrainedView
extends AbstractIntInterval


Nested Class Summary
 
Nested classes inherited from class edu.emory.mathcs.util.collections.ints.AbstractIntInterval
AbstractIntInterval.ComplementView, AbstractIntInterval.ConstrainedView, AbstractIntInterval.SimpleIntervalItemIterator, AbstractIntInterval.SimpleReverseIntervalItemIterator
 
Nested classes inherited from class edu.emory.mathcs.util.collections.ints.AbstractIntSortedSet
AbstractIntSortedSet.AbstractComplementSubView, AbstractIntSortedSet.AbstractSubView, AbstractIntSortedSet.ForwardIntervalItemIterator, AbstractIntSortedSet.ReverseIntervalItemIterator
 
Method Summary
 IntSet complementSet()
          Returns a complement view of this set.
protected  int getFirst()
           
protected  int getLast()
           
 int max()
          The largest number that can be stored in this set.
 int min()
          The smallest number that can be stored in this set.
 IntSortedSet subSet(int first, int last)
          A subset view containing all elements from this set between first, inclusive, and last, inclusive.
 
Methods inherited from class edu.emory.mathcs.util.collections.ints.AbstractIntInterval
addInterval, ceiling, ceilingInterval, clear, contains, containsInterval, descendingIntervalIterator, descendingIterator, enclosingInterval, first, firstInterval, floor, floorInterval, higher, higherInterval, intervalCount, intervalIterator, isEmpty, iterator, last, lastInterval, lower, lowerInterval, pollFirst, pollFirstInterval, pollLast, pollLastInterval, removeInterval, retainInterval, size64, toString
 
Methods inherited from class edu.emory.mathcs.util.collections.ints.AbstractIntSortedSet
headSet, retainAll, tailSet, toCompactString
 
Methods inherited from class edu.emory.mathcs.util.collections.ints.AbstractIntSet
addAll, equals, hashCode, removeAll
 
Methods inherited from class edu.emory.mathcs.util.collections.ints.AbstractIntCollection
add, containsAll, remove, size, toArray, toArray
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.emory.mathcs.util.collections.ints.IntSortedSet
headSet, tailSet, toCompactString
 
Methods inherited from interface edu.emory.mathcs.util.collections.ints.IntSet
add, addAll, containsAll, equals, hashCode, remove, removeAll, retainAll, size, toArray, toArray
 

Method Detail

getFirst

protected int getFirst()
Specified by:
getFirst in class AbstractIntInterval

getLast

protected int getLast()
Specified by:
getLast in class AbstractIntInterval

min

public int min()
Description copied from interface: IntSet
The smallest number that can be stored in this set.

Specified by:
min in interface IntSet
Overrides:
min in class AbstractIntInterval

max

public int max()
Description copied from interface: IntSet
The largest number that can be stored in this set.

Specified by:
max in interface IntSet
Overrides:
max in class AbstractIntInterval

subSet

public IntSortedSet subSet(int first,
                           int last)
Description copied from interface: IntSortedSet
A subset view containing all elements from this set between first, inclusive, and last, inclusive. More precisely, the view is narrowed to the domain [min, max]. Hence, complement set of this set will NOT include any elements outside [min, max].

Specified by:
subSet in interface IntSortedSet
Overrides:
subSet in class AbstractIntInterval

complementSet

public IntSet complementSet()
Description copied from interface: IntSet
Returns a complement view of this set. Complement view is a set that has the same domain as this set, and consists of all numbers from the domain that are not contained in this set. Changes done to this set are reflected in the complement view after it is created.

Specified by:
complementSet in interface IntSet
Overrides:
complementSet in class AbstractIntInterval