|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.emory.mathcs.util.collections.ints.AbstractIntCollection
edu.emory.mathcs.util.collections.ints.AbstractIntSet
edu.emory.mathcs.util.collections.ints.AbstractIntSortedSet
edu.emory.mathcs.util.collections.ints.AbstractIntSortedSet.AbstractSubView
Nested Class Summary |
Nested classes inherited from class edu.emory.mathcs.util.collections.ints.AbstractIntSortedSet |
AbstractIntSortedSet.AbstractComplementSubView, AbstractIntSortedSet.AbstractSubView, AbstractIntSortedSet.ForwardIntervalItemIterator, AbstractIntSortedSet.ReverseIntervalItemIterator |
Field Summary | |
protected IntSortedSet |
base
|
protected int |
beg
|
protected int |
end
|
Constructor Summary | |
protected |
AbstractIntSortedSet.AbstractSubView(IntSortedSet base,
int beg,
int end)
|
Method Summary | |
boolean |
add(int e)
Adds the specified number to this set if it is not already present and if it falls within the domain. |
boolean |
addInterval(int first,
int last)
Adds to this set all the numbers between first and last, inclusive, that are not already present in this set and beint to this set's domain. |
IntInterval |
ceilingInterval(int 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(int e)
Returns true if this set contains the specified number; false otherwise. |
boolean |
containsInterval(int first,
int 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. |
IntInterval |
enclosingInterval(int 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. |
IntInterval |
floorInterval(int e)
Returns the largest (right-most), widest interval contained in this set which elements are not all greater than the specified number. |
IntInterval |
higherInterval(int 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. |
IntInterval |
lowerInterval(int e)
Returns the largest and widest interval contained in this set which all elements are strictly less than the specified number. |
int |
max()
The largest number that can be stored in this set. |
int |
min()
The smallest number that can be stored in this set. |
boolean |
remove(int e)
Removes the specified number from this set if it is present. |
boolean |
removeInterval(int first,
int last)
Removes from this set all the numbers between first and last, inclusive. |
int |
size64()
Returns the number of elements in this set. |
abstract IntSortedSet |
subSet(int first,
int 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.ints.AbstractIntSortedSet |
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.ints.AbstractIntSet |
addAll, complementSet, equals, hashCode, removeAll |
Methods inherited from class edu.emory.mathcs.util.collections.ints.AbstractIntCollection |
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.ints.IntSortedSet |
toString |
Methods inherited from interface edu.emory.mathcs.util.collections.ints.IntSet |
addAll, complementSet, containsAll, equals, hashCode, removeAll, size, toArray, toArray |
Field Detail |
protected final IntSortedSet base
protected final int beg
protected final int end
Constructor Detail |
protected AbstractIntSortedSet.AbstractSubView(IntSortedSet base, int beg, int end)
Method Detail |
public int min()
IntSet
min
in interface IntSet
min
in class AbstractIntSet
public int max()
IntSet
max
in interface IntSet
max
in class AbstractIntSet
public int size64()
IntSet
size64
in interface IntSet
size64
in class AbstractIntSortedSet
public int intervalCount()
IntSortedSet
intervalCount
in interface IntSortedSet
intervalCount
in class AbstractIntSortedSet
public void clear()
IntSet
clear
in interface IntSet
clear
in class AbstractIntCollection
public boolean add(int e)
IntSet
add
in interface IntSet
add
in class AbstractIntCollection
public boolean addInterval(int first, int last)
IntSet
addInterval
in interface IntSet
addInterval
in class AbstractIntSet
public boolean remove(int e)
IntSet
remove
in interface IntSet
remove
in class AbstractIntCollection
public boolean removeInterval(int first, int last)
IntSet
removeInterval
in interface IntSet
removeInterval
in class AbstractIntSet
public boolean contains(int e)
IntSet
contains
in interface IntSet
contains
in class AbstractIntCollection
public boolean containsInterval(int first, int last)
IntSet
containsInterval
in interface IntSet
containsInterval
in class AbstractIntSet
public IntInterval enclosingInterval(int e)
IntSortedSet
enclosingInterval
in interface IntSortedSet
public IntInterval higherInterval(int e)
IntSortedSet
higherInterval
in interface IntSortedSet
public IntInterval ceilingInterval(int e)
IntSortedSet
ceilingInterval
in interface IntSortedSet
public IntInterval lowerInterval(int e)
IntSortedSet
lowerInterval
in interface IntSortedSet
public IntInterval floorInterval(int e)
IntSortedSet
floorInterval
in interface IntSortedSet
public abstract IntSortedSet subSet(int first, int last)
IntSortedSet
subSet
in interface IntSortedSet
first
- the minimum element of this view (inclusive).last
- the maximum element of this view (inclusive).
public abstract java.util.Iterator intervalIterator()
IntSortedSet
intervalIterator
in interface IntSortedSet
public abstract java.util.Iterator descendingIntervalIterator()
IntSortedSet
descendingIntervalIterator
in interface IntSortedSet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |