|
||||||||||
| 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.AbstractComplementSubView
| 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.AbstractComplementSubView(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 n)
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 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. |
abstract java.util.Iterator |
intervalIterator()
Returns an iterator over intervals of this set, in an increasing numerical order. |
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. |
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. |
| 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 |
subSet, 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.AbstractComplementSubView(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 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
public LongInterval lowerInterval(long n)
LongSortedSet
public LongInterval floorInterval(long n)
LongSortedSet
public LongInterval higherInterval(long n)
LongSortedSet
public LongInterval ceilingInterval(long n)
LongSortedSet
public void clear()
LongSet
clear in interface LongSetclear in class AbstractLongCollectionpublic abstract java.util.Iterator intervalIterator()
LongSortedSet
public abstract java.util.Iterator descendingIntervalIterator()
LongSortedSet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||