|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.emory.mathcs.util.collections.shorts.AbstractShortCollection
edu.emory.mathcs.util.collections.shorts.AbstractShortSet
edu.emory.mathcs.util.collections.shorts.AbstractShortSortedSet
edu.emory.mathcs.util.collections.shorts.AbstractShortSortedSet.AbstractComplementSubView
Nested Class Summary |
Nested classes inherited from class edu.emory.mathcs.util.collections.shorts.AbstractShortSortedSet |
AbstractShortSortedSet.AbstractComplementSubView, AbstractShortSortedSet.AbstractSubView, AbstractShortSortedSet.ForwardIntervalItemIterator, AbstractShortSortedSet.ReverseIntervalItemIterator |
Field Summary | |
protected ShortSortedSet |
base
|
protected short |
beg
|
protected short |
end
|
Constructor Summary | |
protected |
AbstractShortSortedSet.AbstractComplementSubView(ShortSortedSet base,
short beg,
short end)
|
Method Summary | |
boolean |
add(short e)
Adds the specified number to this set if it is not already present and if it falls within the domain. |
boolean |
addInterval(short first,
short last)
Adds to this set all the numbers between first and last, inclusive, that are not already present in this set and beshort to this set's domain. |
ShortInterval |
ceilingInterval(short 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(short e)
Returns true if this set contains the specified number; false otherwise. |
boolean |
containsInterval(short first,
short 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. |
ShortInterval |
enclosingInterval(short 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. |
ShortInterval |
floorInterval(short n)
Returns the largest (right-most), widest interval contained in this set which elements are not all greater than the specified number. |
ShortInterval |
higherInterval(short 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. |
ShortInterval |
lowerInterval(short n)
Returns the largest and widest interval contained in this set which all elements are strictly less than the specified number. |
short |
max()
The largest number that can be stored in this set. |
short |
min()
The smallest number that can be stored in this set. |
boolean |
remove(short e)
Removes the specified number from this set if it is present. |
boolean |
removeInterval(short first,
short last)
Removes from this set all the numbers between first and last, inclusive. |
Methods inherited from class edu.emory.mathcs.util.collections.shorts.AbstractShortSortedSet |
ceiling, descendingIterator, first, firstInterval, floor, headSet, higher, isEmpty, iterator, last, lastInterval, lower, pollFirst, pollFirstInterval, pollLast, pollLastInterval, retainAll, retainInterval, size, tailSet, toCompactString |
Methods inherited from class edu.emory.mathcs.util.collections.shorts.AbstractShortSet |
addAll, complementSet, equals, hashCode, removeAll |
Methods inherited from class edu.emory.mathcs.util.collections.shorts.AbstractShortCollection |
containsAll, 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.shorts.ShortSortedSet |
subSet, toString |
Methods inherited from interface edu.emory.mathcs.util.collections.shorts.ShortSet |
addAll, complementSet, containsAll, equals, hashCode, removeAll, toArray, toArray |
Field Detail |
protected final ShortSortedSet base
protected final short beg
protected final short end
Constructor Detail |
protected AbstractShortSortedSet.AbstractComplementSubView(ShortSortedSet base, short beg, short end)
Method Detail |
public short min()
ShortSet
min
in interface ShortSet
min
in class AbstractShortSet
public short max()
ShortSet
max
in interface ShortSet
max
in class AbstractShortSet
public int intervalCount()
ShortSortedSet
intervalCount
in interface ShortSortedSet
intervalCount
in class AbstractShortSortedSet
public boolean add(short e)
ShortSet
add
in interface ShortSet
add
in class AbstractShortCollection
public boolean addInterval(short first, short last)
ShortSet
addInterval
in interface ShortSet
addInterval
in class AbstractShortSet
public boolean remove(short e)
ShortSet
remove
in interface ShortSet
remove
in class AbstractShortCollection
public boolean removeInterval(short first, short last)
ShortSet
removeInterval
in interface ShortSet
removeInterval
in class AbstractShortSet
public boolean contains(short e)
ShortSet
contains
in interface ShortSet
contains
in class AbstractShortCollection
public boolean containsInterval(short first, short last)
ShortSet
containsInterval
in interface ShortSet
containsInterval
in class AbstractShortSet
public ShortInterval enclosingInterval(short e)
ShortSortedSet
public ShortInterval lowerInterval(short n)
ShortSortedSet
public ShortInterval floorInterval(short n)
ShortSortedSet
public ShortInterval higherInterval(short n)
ShortSortedSet
public ShortInterval ceilingInterval(short n)
ShortSortedSet
public void clear()
ShortSet
clear
in interface ShortSet
clear
in class AbstractShortCollection
public abstract java.util.Iterator intervalIterator()
ShortSortedSet
public abstract java.util.Iterator descendingIntervalIterator()
ShortSortedSet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |