|
||||||||||
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 LongSet
isEmpty
in class AbstractLongSet
public long size64()
LongSet
size64
in interface LongSet
size64
in class AbstractLongCollection
public int intervalCount()
LongSortedSet
intervalCount
in interface LongSortedSet
public long first()
LongSortedSet
first
in interface LongSortedSet
public long last()
LongSortedSet
last
in interface LongSortedSet
public long pollFirst()
LongSortedSet
pollFirst
in interface LongSortedSet
public long pollLast()
LongSortedSet
pollLast
in interface LongSortedSet
public LongInterval firstInterval()
LongSortedSet
firstInterval
in interface LongSortedSet
public LongInterval lastInterval()
LongSortedSet
lastInterval
in interface LongSortedSet
public LongInterval pollFirstInterval()
LongSortedSet
pollFirstInterval
in interface LongSortedSet
public LongInterval pollLastInterval()
LongSortedSet
pollLastInterval
in interface LongSortedSet
public boolean retainAll(LongCollection c)
LongSet
retainAll
in interface LongSet
retainAll
in class AbstractLongSet
public boolean retainInterval(long first, long last)
LongSet
retainInterval
in interface LongSet
retainInterval
in class AbstractLongSet
public long higher(long e)
LongSortedSet
higher
in interface LongSortedSet
public long ceiling(long e)
LongSortedSet
ceiling
in interface LongSortedSet
public long lower(long e)
LongSortedSet
lower
in interface LongSortedSet
public long floor(long e)
LongSortedSet
floor
in interface LongSortedSet
public LongSortedSet headSet(long last)
LongSortedSet
headSet
in interface LongSortedSet
last
- the maximum element of this view (inclusive).
public LongSortedSet tailSet(long first)
LongSortedSet
tailSet
in interface LongSortedSet
first
- the minimum element of this view (inclusive).
public LongIterator iterator()
LongSortedSet
iterator
in interface LongSortedSet
iterator
in class AbstractLongCollection
public LongIterator descendingIterator()
LongSortedSet
descendingIterator
in interface LongSortedSet
public 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 |