|
||||||||||
| 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
edu.emory.mathcs.util.collections.longs.AbstractLongInterval.ComplementView
| Nested Class Summary |
| Nested classes inherited from class edu.emory.mathcs.util.collections.longs.AbstractLongSortedSet |
AbstractLongSortedSet.AbstractComplementSubView, AbstractLongSortedSet.AbstractSubView, AbstractLongSortedSet.ForwardIntervalItemIterator, AbstractLongSortedSet.ReverseIntervalItemIterator |
| Method Summary | |
LongInterval |
ceilingInterval(long n)
Returns the smallest (left-most), widest interval contained in this set which elements are not all smaller than the specified number. |
LongSet |
complementSet()
Returns a complement view of this set. |
boolean |
contains(long e)
Returns true if this set contains the specified number; false otherwise. |
boolean |
containsInterval(long first,
long 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. |
LongInterval |
enclosingInterval(long 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. |
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. |
LongInterval |
floorInterval(long n)
Returns the largest (right-most), widest interval contained in this set which elements are not all greater than the specified number. |
LongInterval |
higherInterval(long 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. |
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. |
LongInterval |
lowerInterval(long n)
Returns the largest and widest interval contained in this set which all elements are strictly less than the specified number. |
long |
max()
The largest number that can be stored in this set. |
long |
min()
The smallest number that can be stored 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. |
LongInterval |
pollLastInterval()
Returns and removes the last (right-most), widest interval contained in this set, or null if this set is empty. |
LongSortedSet |
subSet(long first,
long 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.longs.AbstractLongSortedSet |
ceiling, descendingIterator, floor, headSet, higher, isEmpty, iterator, lower, pollFirst, pollLast, retainAll, retainInterval, size64, tailSet, toCompactString |
| Methods inherited from class edu.emory.mathcs.util.collections.longs.AbstractLongSet |
addAll, addInterval, equals, hashCode, removeAll, removeInterval |
| Methods inherited from class edu.emory.mathcs.util.collections.longs.AbstractLongCollection |
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.longs.LongSortedSet |
toString |
| Methods inherited from interface edu.emory.mathcs.util.collections.longs.LongSet |
add, addAll, addInterval, clear, containsAll, equals, hashCode, remove, removeAll, removeInterval, size, toArray, toArray |
| Method Detail |
public long min()
LongSet
min in interface LongSetmin in class AbstractLongSetpublic long max()
LongSet
max in interface LongSetmax in class AbstractLongSetpublic long first()
LongSortedSet
first in interface LongSortedSetfirst in class AbstractLongSortedSetpublic long last()
LongSortedSet
last in interface LongSortedSetlast in class AbstractLongSortedSetpublic boolean contains(long e)
LongSet
contains in interface LongSetcontains in class AbstractLongCollection
public boolean containsInterval(long first,
long last)
LongSet
containsInterval in interface LongSetcontainsInterval in class AbstractLongSetpublic LongInterval enclosingInterval(long e)
LongSortedSet
public LongInterval higherInterval(long n)
LongSortedSet
public LongInterval ceilingInterval(long n)
LongSortedSet
public LongInterval lowerInterval(long n)
LongSortedSet
public LongInterval floorInterval(long n)
LongSortedSet
public LongInterval firstInterval()
LongSortedSet
firstInterval in interface LongSortedSetfirstInterval in class AbstractLongSortedSetpublic LongInterval lastInterval()
LongSortedSet
lastInterval in interface LongSortedSetlastInterval in class AbstractLongSortedSetpublic LongInterval pollFirstInterval()
LongSortedSet
pollFirstInterval in interface LongSortedSetpollFirstInterval in class AbstractLongSortedSetpublic LongInterval pollLastInterval()
LongSortedSet
pollLastInterval in interface LongSortedSetpollLastInterval in class AbstractLongSortedSetpublic int intervalCount()
LongSortedSet
intervalCount in interface LongSortedSetintervalCount in class AbstractLongSortedSet
public LongSortedSet subSet(long first,
long last)
LongSortedSet
first - the minimum element of this view (inclusive).last - the maximum element of this view (inclusive).
public LongSet complementSet()
LongSet
complementSet in interface LongSetcomplementSet in class AbstractLongSetpublic java.util.Iterator intervalIterator()
LongSortedSet
public java.util.Iterator descendingIntervalIterator()
LongSortedSet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||