|
||||||||||
| 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
Convenience subclass for sorted short sets.
| Nested Class Summary | |
protected static class |
AbstractShortSortedSet.AbstractComplementSubView
|
protected static class |
AbstractShortSortedSet.AbstractSubView
|
protected static class |
AbstractShortSortedSet.ForwardIntervalItemIterator
|
protected static class |
AbstractShortSortedSet.ReverseIntervalItemIterator
|
| Constructor Summary | |
AbstractShortSortedSet()
|
|
| Method Summary | |
short |
ceiling(short e)
Returns the smallest number in this set >= e. |
ShortIterator |
descendingIterator()
Returns an iterator over numbers in this set, in a decreasing numerical order. |
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. |
short |
floor(short e)
Returns the largest number in this set <= e. |
ShortSortedSet |
headSet(short last)
A subset view containing all elements from this set that are not greater than last. |
short |
higher(short e)
Returns the smallest number in this set > e. |
int |
intervalCount()
Returns the minimum count of intervals into which this set can be decomposed. |
boolean |
isEmpty()
Returns true if this set is empty; false otherwise. |
ShortIterator |
iterator()
Returns an iterator over numbers in 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. |
short |
lower(short e)
Returns the largest number in this set < e. |
short |
pollFirst()
Returns and removes the smallest number 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. |
short |
pollLast()
Returns and removes the largest number in this set. |
ShortInterval |
pollLastInterval()
Returns and removes the last (right-most), widest interval contained in this set, or null if this set is empty. |
boolean |
retainAll(ShortCollection c)
Retains only the elements in this set that are contained in the specified collection. |
boolean |
retainInterval(short first,
short last)
Retains in this set only the numbers between first and last, inclusive. |
int |
size()
Returns the number of elements in this set. |
ShortSortedSet |
tailSet(short first)
A subset view containing all elements from this set that are not smaller than first. |
java.lang.String |
toCompactString()
Returns the interval-string representation of this set (suitable for representing sets that are possibly large but clustered). |
| Methods inherited from class edu.emory.mathcs.util.collections.shorts.AbstractShortSet |
addAll, addInterval, complementSet, containsInterval, equals, hashCode, max, min, removeAll, removeInterval |
| Methods inherited from class edu.emory.mathcs.util.collections.shorts.AbstractShortCollection |
add, clear, contains, 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 |
ceilingInterval, descendingIntervalIterator, enclosingInterval, floorInterval, higherInterval, intervalIterator, lowerInterval, subSet, toString |
| Methods inherited from interface edu.emory.mathcs.util.collections.shorts.ShortSet |
add, addAll, addInterval, clear, complementSet, contains, containsAll, containsInterval, equals, hashCode, max, min, remove, removeAll, removeInterval, toArray, toArray |
| Constructor Detail |
public AbstractShortSortedSet()
| Method Detail |
public boolean isEmpty()
ShortSet
isEmpty in interface ShortSetisEmpty in class AbstractShortSetpublic int size()
ShortSet
size in interface ShortSetsize in class AbstractShortCollectionpublic int intervalCount()
ShortSortedSet
intervalCount in interface ShortSortedSetpublic short first()
ShortSortedSet
first in interface ShortSortedSetpublic short last()
ShortSortedSet
last in interface ShortSortedSetpublic short pollFirst()
ShortSortedSet
pollFirst in interface ShortSortedSetpublic short pollLast()
ShortSortedSet
pollLast in interface ShortSortedSetpublic ShortInterval firstInterval()
ShortSortedSet
firstInterval in interface ShortSortedSetpublic ShortInterval lastInterval()
ShortSortedSet
lastInterval in interface ShortSortedSetpublic ShortInterval pollFirstInterval()
ShortSortedSet
pollFirstInterval in interface ShortSortedSetpublic ShortInterval pollLastInterval()
ShortSortedSet
pollLastInterval in interface ShortSortedSetpublic boolean retainAll(ShortCollection c)
ShortSet
retainAll in interface ShortSetretainAll in class AbstractShortSet
public boolean retainInterval(short first,
short last)
ShortSet
retainInterval in interface ShortSetretainInterval in class AbstractShortSetpublic short higher(short e)
ShortSortedSet
higher in interface ShortSortedSetpublic short ceiling(short e)
ShortSortedSet
ceiling in interface ShortSortedSetpublic short lower(short e)
ShortSortedSet
lower in interface ShortSortedSetpublic short floor(short e)
ShortSortedSet
floor in interface ShortSortedSetpublic ShortSortedSet headSet(short last)
ShortSortedSet
headSet in interface ShortSortedSetlast - the maximum element of this view (inclusive).
public ShortSortedSet tailSet(short first)
ShortSortedSet
tailSet in interface ShortSortedSetfirst - the minimum element of this view (inclusive).
public ShortIterator iterator()
ShortSortedSet
iterator in interface ShortSortedSetiterator in class AbstractShortCollectionpublic ShortIterator descendingIterator()
ShortSortedSet
descendingIterator in interface ShortSortedSetpublic java.lang.String toCompactString()
ShortSortedSet
toCompactString in interface ShortSortedSet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||