|
||||||||||
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.AbstractShortInterval.ComplementView
Nested Class Summary |
Nested classes inherited from class edu.emory.mathcs.util.collections.shorts.AbstractShortSortedSet |
AbstractShortSortedSet.AbstractComplementSubView, AbstractShortSortedSet.AbstractSubView, AbstractShortSortedSet.ForwardIntervalItemIterator, AbstractShortSortedSet.ReverseIntervalItemIterator |
Method Summary | |
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. |
ShortSet |
complementSet()
Returns a complement view of 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. |
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. |
short |
first()
Returns the smallest number in this set. |
ShortInterval |
firstInterval()
Returns the first (left-most), widest interval contained in this set, or null if this set is empty. |
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. |
java.util.Iterator |
intervalIterator()
Returns an iterator over intervals of this set, in an increasing numerical order. |
short |
last()
Returns the largest number in this set. |
ShortInterval |
lastInterval()
Returns the last (right-most), widest interval contained in this set, or null if this set is empty. |
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. |
ShortInterval |
pollFirstInterval()
Returns and removes the first (left-most), widest interval contained in this set, or null if this set is empty. |
ShortInterval |
pollLastInterval()
Returns and removes the last (right-most), widest interval contained in this set, or null if this set is empty. |
ShortSortedSet |
subSet(short first,
short 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.shorts.AbstractShortSortedSet |
ceiling, descendingIterator, floor, headSet, higher, isEmpty, iterator, lower, pollFirst, pollLast, retainAll, retainInterval, size, tailSet, toCompactString |
Methods inherited from class edu.emory.mathcs.util.collections.shorts.AbstractShortSet |
addAll, addInterval, equals, hashCode, removeAll, removeInterval |
Methods inherited from class edu.emory.mathcs.util.collections.shorts.AbstractShortCollection |
add, clear, containsAll, remove, 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 |
toString |
Methods inherited from interface edu.emory.mathcs.util.collections.shorts.ShortSet |
add, addAll, addInterval, clear, containsAll, equals, hashCode, remove, removeAll, removeInterval, toArray, toArray |
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 short first()
ShortSortedSet
first
in interface ShortSortedSet
first
in class AbstractShortSortedSet
public short last()
ShortSortedSet
last
in interface ShortSortedSet
last
in class AbstractShortSortedSet
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 higherInterval(short n)
ShortSortedSet
public ShortInterval ceilingInterval(short n)
ShortSortedSet
public ShortInterval lowerInterval(short n)
ShortSortedSet
public ShortInterval floorInterval(short n)
ShortSortedSet
public ShortInterval firstInterval()
ShortSortedSet
firstInterval
in interface ShortSortedSet
firstInterval
in class AbstractShortSortedSet
public ShortInterval lastInterval()
ShortSortedSet
lastInterval
in interface ShortSortedSet
lastInterval
in class AbstractShortSortedSet
public ShortInterval pollFirstInterval()
ShortSortedSet
pollFirstInterval
in interface ShortSortedSet
pollFirstInterval
in class AbstractShortSortedSet
public ShortInterval pollLastInterval()
ShortSortedSet
pollLastInterval
in interface ShortSortedSet
pollLastInterval
in class AbstractShortSortedSet
public int intervalCount()
ShortSortedSet
intervalCount
in interface ShortSortedSet
intervalCount
in class AbstractShortSortedSet
public ShortSortedSet subSet(short first, short last)
ShortSortedSet
first
- the minimum element of this view (inclusive).last
- the maximum element of this view (inclusive).
public ShortSet complementSet()
ShortSet
complementSet
in interface ShortSet
complementSet
in class AbstractShortSet
public java.util.Iterator intervalIterator()
ShortSortedSet
public java.util.Iterator descendingIntervalIterator()
ShortSortedSet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |