|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.emory.mathcs.util.collections.longs.AbstractLongCollection
edu.emory.mathcs.util.collections.longs.AbstractLongSet
edu.emory.mathcs.util.collections.longs.AbstractLongSortedSet
Convenience subclass for sorted long sets.
| Nested Class Summary | |
protected static class |
AbstractLongSortedSet.AbstractComplementSubView
|
protected static class |
AbstractLongSortedSet.AbstractSubView
|
protected static class |
AbstractLongSortedSet.ForwardIntervalItemIterator
|
protected static class |
AbstractLongSortedSet.ReverseIntervalItemIterator
|
| Constructor Summary | |
AbstractLongSortedSet()
|
|
| Method Summary | |
long |
ceiling(long e)
Returns the smallest number in this set >= e. |
LongIterator |
descendingIterator()
Returns an iterator over numbers in this set, in a decreasing numerical order. |
long |
first()
Returns the smallest number in this set. |
LongInterval |
firstInterval()
Returns the first (left-most), widest interval contained in this set, or null if this set is empty. |
long |
floor(long e)
Returns the largest number in this set <= e. |
LongSortedSet |
headSet(long last)
A subset view containing all elements from this set that are not greater than last. |
long |
higher(long 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. |
LongIterator |
iterator()
Returns an iterator over numbers in this set, in an increasing numerical order. |
long |
last()
Returns the largest number in this set. |
LongInterval |
lastInterval()
Returns the last (right-most), widest interval contained in this set, or null if this set is empty. |
long |
lower(long e)
Returns the largest number in this set < e. |
long |
pollFirst()
Returns and removes the smallest number in this set. |
LongInterval |
pollFirstInterval()
Returns and removes the first (left-most), widest interval contained in this set, or null if this set is empty. |
long |
pollLast()
Returns and removes the largest number in this set. |
LongInterval |
pollLastInterval()
Returns and removes the last (right-most), widest interval contained in this set, or null if this set is empty. |
boolean |
retainAll(LongCollection c)
Retains only the elements in this set that are contained in the specified collection. |
boolean |
retainInterval(long first,
long last)
Retains in this set only the numbers between first and last, inclusive. |
long |
size64()
// PREPROC: Long,Int only Returns the number of elements in this set. |
LongSortedSet |
tailSet(long 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.longs.AbstractLongSet |
addAll, addInterval, complementSet, containsInterval, equals, hashCode, max, min, removeAll, removeInterval |
| Methods inherited from class edu.emory.mathcs.util.collections.longs.AbstractLongCollection |
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.longs.LongSortedSet |
ceilingInterval, descendingIntervalIterator, enclosingInterval, floorInterval, higherInterval, intervalIterator, lowerInterval, subSet, toString |
| Methods inherited from interface edu.emory.mathcs.util.collections.longs.LongSet |
add, addAll, addInterval, clear, complementSet, contains, containsAll, containsInterval, equals, hashCode, max, min, remove, removeAll, removeInterval, size, toArray, toArray |
| Constructor Detail |
public AbstractLongSortedSet()
| Method Detail |
public boolean isEmpty()
LongSet
isEmpty in interface LongSetisEmpty in class AbstractLongSetpublic long size64()
LongSet
size64 in interface LongSetsize64 in class AbstractLongCollectionpublic int intervalCount()
LongSortedSet
intervalCount in interface LongSortedSetpublic long first()
LongSortedSet
first in interface LongSortedSetpublic long last()
LongSortedSet
last in interface LongSortedSetpublic long pollFirst()
LongSortedSet
pollFirst in interface LongSortedSetpublic long pollLast()
LongSortedSet
pollLast in interface LongSortedSetpublic LongInterval firstInterval()
LongSortedSet
firstInterval in interface LongSortedSetpublic LongInterval lastInterval()
LongSortedSet
lastInterval in interface LongSortedSetpublic LongInterval pollFirstInterval()
LongSortedSet
pollFirstInterval in interface LongSortedSetpublic LongInterval pollLastInterval()
LongSortedSet
pollLastInterval in interface LongSortedSetpublic boolean retainAll(LongCollection c)
LongSet
retainAll in interface LongSetretainAll in class AbstractLongSet
public boolean retainInterval(long first,
long last)
LongSet
retainInterval in interface LongSetretainInterval in class AbstractLongSetpublic long higher(long e)
LongSortedSet
higher in interface LongSortedSetpublic long ceiling(long e)
LongSortedSet
ceiling in interface LongSortedSetpublic long lower(long e)
LongSortedSet
lower in interface LongSortedSetpublic long floor(long e)
LongSortedSet
floor in interface LongSortedSetpublic LongSortedSet headSet(long last)
LongSortedSet
headSet in interface LongSortedSetlast - the maximum element of this view (inclusive).
public LongSortedSet tailSet(long first)
LongSortedSet
tailSet in interface LongSortedSetfirst - the minimum element of this view (inclusive).
public LongIterator iterator()
LongSortedSet
iterator in interface LongSortedSetiterator in class AbstractLongCollectionpublic LongIterator descendingIterator()
LongSortedSet
descendingIterator in interface LongSortedSetpublic java.lang.String toCompactString()
LongSortedSet
toCompactString in interface LongSortedSet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||