|
||||||||||
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 LongSet
min
in class AbstractLongSet
public long max()
LongSet
max
in interface LongSet
max
in class AbstractLongSet
public long size64()
LongSet
size64
in interface LongSet
size64
in class AbstractLongSortedSet
public int intervalCount()
LongSortedSet
intervalCount
in interface LongSortedSet
intervalCount
in class AbstractLongSortedSet
public void clear()
LongSet
clear
in interface LongSet
clear
in class AbstractLongCollection
public boolean add(long e)
LongSet
add
in interface LongSet
add
in class AbstractLongCollection
public boolean addInterval(long first, long last)
LongSet
addInterval
in interface LongSet
addInterval
in class AbstractLongSet
public boolean remove(long e)
LongSet
remove
in interface LongSet
remove
in class AbstractLongCollection
public boolean removeInterval(long first, long last)
LongSet
removeInterval
in interface LongSet
removeInterval
in class AbstractLongSet
public boolean contains(long e)
LongSet
contains
in interface LongSet
contains
in class AbstractLongCollection
public boolean containsInterval(long first, long last)
LongSet
containsInterval
in interface LongSet
containsInterval
in class AbstractLongSet
public LongInterval enclosingInterval(long e)
LongSortedSet
enclosingInterval
in interface LongSortedSet
public LongInterval higherInterval(long e)
LongSortedSet
higherInterval
in interface LongSortedSet
public LongInterval ceilingInterval(long e)
LongSortedSet
ceilingInterval
in interface LongSortedSet
public LongInterval lowerInterval(long e)
LongSortedSet
lowerInterval
in interface LongSortedSet
public LongInterval floorInterval(long e)
LongSortedSet
floorInterval
in interface LongSortedSet
public abstract LongSortedSet subSet(long first, long last)
LongSortedSet
subSet
in interface LongSortedSet
first
- 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 LongSortedSet
public 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 |