|
||||||||||
| 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 ShortSetmin in class AbstractShortSetpublic short max()
ShortSet
max in interface ShortSetmax in class AbstractShortSetpublic int intervalCount()
ShortSortedSet
intervalCount in interface ShortSortedSetintervalCount in class AbstractShortSortedSetpublic boolean add(short e)
ShortSet
add in interface ShortSetadd in class AbstractShortCollection
public boolean addInterval(short first,
short last)
ShortSet
addInterval in interface ShortSetaddInterval in class AbstractShortSetpublic boolean remove(short e)
ShortSet
remove in interface ShortSetremove in class AbstractShortCollection
public boolean removeInterval(short first,
short last)
ShortSet
removeInterval in interface ShortSetremoveInterval in class AbstractShortSetpublic boolean contains(short e)
ShortSet
contains in interface ShortSetcontains in class AbstractShortCollection
public boolean containsInterval(short first,
short last)
ShortSet
containsInterval in interface ShortSetcontainsInterval in class AbstractShortSetpublic 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 ShortSetclear in class AbstractShortCollectionpublic 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 | |||||||||