|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.emory.mathcs.util.collections.ints.AbstractIntCollection
edu.emory.mathcs.util.collections.ints.AbstractIntSet
edu.emory.mathcs.util.collections.ints.AbstractIntSortedSet
edu.emory.mathcs.util.collections.ints.AbstractIntInterval.ComplementView
Nested Class Summary |
Nested classes inherited from class edu.emory.mathcs.util.collections.ints.AbstractIntSortedSet |
AbstractIntSortedSet.AbstractComplementSubView, AbstractIntSortedSet.AbstractSubView, AbstractIntSortedSet.ForwardIntervalItemIterator, AbstractIntSortedSet.ReverseIntervalItemIterator |
Method Summary | |
IntInterval |
ceilingInterval(int n)
Returns the smallest (left-most), widest interval contained in this set which elements are not all smaller than the specified number. |
IntSet |
complementSet()
Returns a complement view of this set. |
boolean |
contains(int e)
Returns true if this set contains the specified number; false otherwise. |
boolean |
containsInterval(int first,
int last)
Returns true if this set contains all the numbers between first and last, inclusive; false otherwise. |
java.util.Iterator |
descendingIntervalIterator()
Returns an iterator over intervals of this set, in a decreasing numerical order. |
IntInterval |
enclosingInterval(int e)
Returns the widest interval contained in this set that includes the specified number, or null if this set does not include the specified number. |
int |
first()
Returns the smallest number in this set. |
IntInterval |
firstInterval()
Returns the first (left-most), widest interval contained in this set, or null if this set is empty. |
IntInterval |
floorInterval(int n)
Returns the largest (right-most), widest interval contained in this set which elements are not all greater than the specified number. |
IntInterval |
higherInterval(int n)
Returns the smallest (left-most), widest interval contained in this set which all elements are strictly greater than the specified number. |
int |
intervalCount()
Returns the minimum count of intervals into which this set can be decomposed. |
java.util.Iterator |
intervalIterator()
Returns an iterator over intervals of this set, in an increasing numerical order. |
int |
last()
Returns the largest number in this set. |
IntInterval |
lastInterval()
Returns the last (right-most), widest interval contained in this set, or null if this set is empty. |
IntInterval |
lowerInterval(int n)
Returns the largest and widest interval contained in this set which all elements are strictly less than the specified number. |
int |
max()
The largest number that can be stored in this set. |
int |
min()
The smallest number that can be stored in this set. |
IntInterval |
pollFirstInterval()
Returns and removes the first (left-most), widest interval contained in this set, or null if this set is empty. |
IntInterval |
pollLastInterval()
Returns and removes the last (right-most), widest interval contained in this set, or null if this set is empty. |
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.AbstractIntSortedSet |
ceiling, descendingIterator, floor, headSet, higher, isEmpty, iterator, lower, pollFirst, pollLast, retainAll, retainInterval, size64, tailSet, toCompactString |
Methods inherited from class edu.emory.mathcs.util.collections.ints.AbstractIntSet |
addAll, addInterval, equals, hashCode, removeAll, removeInterval |
Methods inherited from class edu.emory.mathcs.util.collections.ints.AbstractIntCollection |
add, clear, containsAll, remove, size, toArray, toArray, toString |
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 |
toString |
Methods inherited from interface edu.emory.mathcs.util.collections.ints.IntSet |
add, addAll, addInterval, clear, containsAll, equals, hashCode, remove, removeAll, removeInterval, size, toArray, toArray |
Method Detail |
public int min()
IntSet
min
in interface IntSet
min
in class AbstractIntSet
public int max()
IntSet
max
in interface IntSet
max
in class AbstractIntSet
public int first()
IntSortedSet
first
in interface IntSortedSet
first
in class AbstractIntSortedSet
public int last()
IntSortedSet
last
in interface IntSortedSet
last
in class AbstractIntSortedSet
public boolean contains(int e)
IntSet
contains
in interface IntSet
contains
in class AbstractIntCollection
public boolean containsInterval(int first, int last)
IntSet
containsInterval
in interface IntSet
containsInterval
in class AbstractIntSet
public IntInterval enclosingInterval(int e)
IntSortedSet
public IntInterval higherInterval(int n)
IntSortedSet
public IntInterval ceilingInterval(int n)
IntSortedSet
public IntInterval lowerInterval(int n)
IntSortedSet
public IntInterval floorInterval(int n)
IntSortedSet
public IntInterval firstInterval()
IntSortedSet
firstInterval
in interface IntSortedSet
firstInterval
in class AbstractIntSortedSet
public IntInterval lastInterval()
IntSortedSet
lastInterval
in interface IntSortedSet
lastInterval
in class AbstractIntSortedSet
public IntInterval pollFirstInterval()
IntSortedSet
pollFirstInterval
in interface IntSortedSet
pollFirstInterval
in class AbstractIntSortedSet
public IntInterval pollLastInterval()
IntSortedSet
pollLastInterval
in interface IntSortedSet
pollLastInterval
in class AbstractIntSortedSet
public int intervalCount()
IntSortedSet
intervalCount
in interface IntSortedSet
intervalCount
in class AbstractIntSortedSet
public IntSortedSet subSet(int first, int last)
IntSortedSet
first
- the minimum element of this view (inclusive).last
- the maximum element of this view (inclusive).
public IntSet complementSet()
IntSet
complementSet
in interface IntSet
complementSet
in class AbstractIntSet
public java.util.Iterator intervalIterator()
IntSortedSet
public java.util.Iterator descendingIntervalIterator()
IntSortedSet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |