|
||||||||||
| 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.AbstractLongSortedSet.AbstractSubView
| Nested Class Summary |
| Nested classes inherited from class edu.emory.mathcs.util.collections.longs.AbstractLongSortedSet |
AbstractLongSortedSet.AbstractComplementSubView, AbstractLongSortedSet.AbstractSubView, AbstractLongSortedSet.ForwardIntervalItemIterator, AbstractLongSortedSet.ReverseIntervalItemIterator |
| Field Summary | |
protected LongSortedSet |
base
|
protected long |
beg
|
protected long |
end
|
| Constructor Summary | |
protected |
AbstractLongSortedSet.AbstractSubView(LongSortedSet base,
long beg,
long end)
|
| Method Summary | |
boolean |
add(long e)
Adds the specified number to this set if it is not already present and if it falls within the domain. |
boolean |
addInterval(long first,
long last)
Adds to this set all the numbers between first and last, inclusive, that are not already present in this set and belong to this set's domain. |
LongInterval |
ceilingInterval(long e)
Returns the smallest (left-most), widest interval contained in this set which elements are not all smaller than the specified number. |
void |
clear()
Removes all of the elements from 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. |
abstract 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. |
LongInterval |
floorInterval(long e)
Returns the largest (right-most), widest interval contained in this set which elements are not all greater than the specified number. |
LongInterval |
higherInterval(long e)
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. |
abstract java.util.Iterator |
intervalIterator()
Returns an iterator over intervals of this set, in an increasing numerical order. |
LongInterval |
lowerInterval(long e)
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. |
boolean |
remove(long e)
Removes the specified number from this set if it is present. |
boolean |
removeInterval(long first,
long last)
Removes from this set all the numbers between first and last, inclusive. |
long |
size64()
// PREPROC: Long,Int only Returns the number of elements in this set. |
abstract 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, first, firstInterval, floor, headSet, higher, isEmpty, iterator, last, lastInterval, lower, pollFirst, pollFirstInterval, pollLast, pollLastInterval, retainAll, retainInterval, tailSet, toCompactString |
| Methods inherited from class edu.emory.mathcs.util.collections.longs.AbstractLongSet |
addAll, complementSet, equals, hashCode, removeAll |
| Methods inherited from class edu.emory.mathcs.util.collections.longs.AbstractLongCollection |
containsAll, 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 |
addAll, complementSet, containsAll, equals, hashCode, removeAll, size, toArray, toArray |
| Field Detail |
protected final LongSortedSet base
protected final long beg
protected final long end
| Constructor Detail |
protected AbstractLongSortedSet.AbstractSubView(LongSortedSet base,
long beg,
long end)
| Method Detail |
public long min()
LongSet
min in interface LongSetmin in class AbstractLongSetpublic long max()
LongSet
max in interface LongSetmax in class AbstractLongSetpublic long size64()
LongSet
size64 in interface LongSetsize64 in class AbstractLongSortedSetpublic int intervalCount()
LongSortedSet
intervalCount in interface LongSortedSetintervalCount in class AbstractLongSortedSetpublic void clear()
LongSet
clear in interface LongSetclear in class AbstractLongCollectionpublic boolean add(long e)
LongSet
add in interface LongSetadd in class AbstractLongCollection
public boolean addInterval(long first,
long last)
LongSet
addInterval in interface LongSetaddInterval in class AbstractLongSetpublic boolean remove(long e)
LongSet
remove in interface LongSetremove in class AbstractLongCollection
public boolean removeInterval(long first,
long last)
LongSet
removeInterval in interface LongSetremoveInterval in class AbstractLongSetpublic 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
enclosingInterval in interface LongSortedSetpublic LongInterval higherInterval(long e)
LongSortedSet
higherInterval in interface LongSortedSetpublic LongInterval ceilingInterval(long e)
LongSortedSet
ceilingInterval in interface LongSortedSetpublic LongInterval lowerInterval(long e)
LongSortedSet
lowerInterval in interface LongSortedSetpublic LongInterval floorInterval(long e)
LongSortedSet
floorInterval in interface LongSortedSet
public abstract LongSortedSet subSet(long first,
long last)
LongSortedSet
subSet in interface LongSortedSetfirst - the minimum element of this view (inclusive).last - the maximum element of this view (inclusive).
public abstract java.util.Iterator intervalIterator()
LongSortedSet
intervalIterator in interface LongSortedSetpublic abstract java.util.Iterator descendingIntervalIterator()
LongSortedSet
descendingIntervalIterator in interface LongSortedSet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||