|
||||||||||
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 IntSet
isEmpty
in class AbstractIntSet
public int size64()
IntSet
size64
in interface IntSet
size64
in class AbstractIntCollection
public int intervalCount()
IntSortedSet
intervalCount
in interface IntSortedSet
public int first()
IntSortedSet
first
in interface IntSortedSet
public int last()
IntSortedSet
last
in interface IntSortedSet
public int pollFirst()
IntSortedSet
pollFirst
in interface IntSortedSet
public int pollLast()
IntSortedSet
pollLast
in interface IntSortedSet
public IntInterval firstInterval()
IntSortedSet
firstInterval
in interface IntSortedSet
public IntInterval lastInterval()
IntSortedSet
lastInterval
in interface IntSortedSet
public IntInterval pollFirstInterval()
IntSortedSet
pollFirstInterval
in interface IntSortedSet
public IntInterval pollLastInterval()
IntSortedSet
pollLastInterval
in interface IntSortedSet
public boolean retainAll(IntCollection c)
IntSet
retainAll
in interface IntSet
retainAll
in class AbstractIntSet
public boolean retainInterval(int first, int last)
IntSet
retainInterval
in interface IntSet
retainInterval
in class AbstractIntSet
public int higher(int e)
IntSortedSet
higher
in interface IntSortedSet
public int ceiling(int e)
IntSortedSet
ceiling
in interface IntSortedSet
public int lower(int e)
IntSortedSet
lower
in interface IntSortedSet
public int floor(int e)
IntSortedSet
floor
in interface IntSortedSet
public IntSortedSet headSet(int last)
IntSortedSet
headSet
in interface IntSortedSet
last
- the maximum element of this view (inclusive).
public IntSortedSet tailSet(int first)
IntSortedSet
tailSet
in interface IntSortedSet
first
- the minimum element of this view (inclusive).
public IntIterator iterator()
IntSortedSet
iterator
in interface IntSortedSet
iterator
in class AbstractIntCollection
public IntIterator descendingIterator()
IntSortedSet
descendingIterator
in interface IntSortedSet
public 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 |