|
||||||||||
| 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
Convenience subclass for sorted int sets.
| Nested Class Summary | |
protected static class |
AbstractIntSortedSet.AbstractComplementSubView
|
protected static class |
AbstractIntSortedSet.AbstractSubView
|
protected static class |
AbstractIntSortedSet.ForwardIntervalItemIterator
|
protected static class |
AbstractIntSortedSet.ReverseIntervalItemIterator
|
| Constructor Summary | |
AbstractIntSortedSet()
|
|
| Method Summary | |
int |
ceiling(int e)
Returns the smallest number in this set >= e. |
IntIterator |
descendingIterator()
Returns an iterator over numbers in this set, in a decreasing numerical order. |
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. |
int |
floor(int e)
Returns the largest number in this set <= e. |
IntSortedSet |
headSet(int last)
A subset view containing all elements from this set that are not greater than last. |
int |
higher(int e)
Returns the smallest number in this set > e. |
int |
intervalCount()
Returns the minimum count of intervals into which this set can be decomposed. |
boolean |
isEmpty()
Returns true if this set is empty; false otherwise. |
IntIterator |
iterator()
Returns an iterator over numbers in 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. |
int |
lower(int e)
Returns the largest number in this set < e. |
int |
pollFirst()
Returns and removes the smallest number 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. |
int |
pollLast()
Returns and removes the largest number in this set. |
IntInterval |
pollLastInterval()
Returns and removes the last (right-most), widest interval contained in this set, or null if this set is empty. |
boolean |
retainAll(IntCollection c)
Retains only the elements in this set that are contained in the specified collection. |
boolean |
retainInterval(int first,
int last)
Retains in this set only the numbers between first and last, inclusive. |
int |
size64()
Returns the number of elements in this set. |
IntSortedSet |
tailSet(int first)
A subset view containing all elements from this set that are not smaller than first. |
java.lang.String |
toCompactString()
Returns the interval-string representation of this set (suitable for representing sets that are possibly large but clustered). |
| Methods inherited from class edu.emory.mathcs.util.collections.ints.AbstractIntSet |
addAll, addInterval, complementSet, containsInterval, equals, hashCode, max, min, removeAll, removeInterval |
| Methods inherited from class edu.emory.mathcs.util.collections.ints.AbstractIntCollection |
add, clear, contains, 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 |
ceilingInterval, descendingIntervalIterator, enclosingInterval, floorInterval, higherInterval, intervalIterator, lowerInterval, subSet, toString |
| Methods inherited from interface edu.emory.mathcs.util.collections.ints.IntSet |
add, addAll, addInterval, clear, complementSet, contains, containsAll, containsInterval, equals, hashCode, max, min, remove, removeAll, removeInterval, size, toArray, toArray |
| Constructor Detail |
public AbstractIntSortedSet()
| Method Detail |
public boolean isEmpty()
IntSet
isEmpty in interface IntSetisEmpty in class AbstractIntSetpublic int size64()
IntSet
size64 in interface IntSetsize64 in class AbstractIntCollectionpublic int intervalCount()
IntSortedSet
intervalCount in interface IntSortedSetpublic int first()
IntSortedSet
first in interface IntSortedSetpublic int last()
IntSortedSet
last in interface IntSortedSetpublic int pollFirst()
IntSortedSet
pollFirst in interface IntSortedSetpublic int pollLast()
IntSortedSet
pollLast in interface IntSortedSetpublic IntInterval firstInterval()
IntSortedSet
firstInterval in interface IntSortedSetpublic IntInterval lastInterval()
IntSortedSet
lastInterval in interface IntSortedSetpublic IntInterval pollFirstInterval()
IntSortedSet
pollFirstInterval in interface IntSortedSetpublic IntInterval pollLastInterval()
IntSortedSet
pollLastInterval in interface IntSortedSetpublic boolean retainAll(IntCollection c)
IntSet
retainAll in interface IntSetretainAll in class AbstractIntSet
public boolean retainInterval(int first,
int last)
IntSet
retainInterval in interface IntSetretainInterval in class AbstractIntSetpublic int higher(int e)
IntSortedSet
higher in interface IntSortedSetpublic int ceiling(int e)
IntSortedSet
ceiling in interface IntSortedSetpublic int lower(int e)
IntSortedSet
lower in interface IntSortedSetpublic int floor(int e)
IntSortedSet
floor in interface IntSortedSetpublic IntSortedSet headSet(int last)
IntSortedSet
headSet in interface IntSortedSetlast - the maximum element of this view (inclusive).
public IntSortedSet tailSet(int first)
IntSortedSet
tailSet in interface IntSortedSetfirst - the minimum element of this view (inclusive).
public IntIterator iterator()
IntSortedSet
iterator in interface IntSortedSetiterator in class AbstractIntCollectionpublic IntIterator descendingIterator()
IntSortedSet
descendingIterator in interface IntSortedSetpublic java.lang.String toCompactString()
IntSortedSet
toCompactString in interface IntSortedSet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||