|
||||||||||
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 ShortSet
isEmpty
in class AbstractShortSet
public int size()
ShortSet
size
in interface ShortSet
size
in class AbstractShortCollection
public int intervalCount()
ShortSortedSet
intervalCount
in interface ShortSortedSet
public short first()
ShortSortedSet
first
in interface ShortSortedSet
public short last()
ShortSortedSet
last
in interface ShortSortedSet
public short pollFirst()
ShortSortedSet
pollFirst
in interface ShortSortedSet
public short pollLast()
ShortSortedSet
pollLast
in interface ShortSortedSet
public ShortInterval firstInterval()
ShortSortedSet
firstInterval
in interface ShortSortedSet
public ShortInterval lastInterval()
ShortSortedSet
lastInterval
in interface ShortSortedSet
public ShortInterval pollFirstInterval()
ShortSortedSet
pollFirstInterval
in interface ShortSortedSet
public ShortInterval pollLastInterval()
ShortSortedSet
pollLastInterval
in interface ShortSortedSet
public boolean retainAll(ShortCollection c)
ShortSet
retainAll
in interface ShortSet
retainAll
in class AbstractShortSet
public boolean retainInterval(short first, short last)
ShortSet
retainInterval
in interface ShortSet
retainInterval
in class AbstractShortSet
public short higher(short e)
ShortSortedSet
higher
in interface ShortSortedSet
public short ceiling(short e)
ShortSortedSet
ceiling
in interface ShortSortedSet
public short lower(short e)
ShortSortedSet
lower
in interface ShortSortedSet
public short floor(short e)
ShortSortedSet
floor
in interface ShortSortedSet
public ShortSortedSet headSet(short last)
ShortSortedSet
headSet
in interface ShortSortedSet
last
- the maximum element of this view (inclusive).
public ShortSortedSet tailSet(short first)
ShortSortedSet
tailSet
in interface ShortSortedSet
first
- the minimum element of this view (inclusive).
public ShortIterator iterator()
ShortSortedSet
iterator
in interface ShortSortedSet
iterator
in class AbstractShortCollection
public ShortIterator descendingIterator()
ShortSortedSet
descendingIterator
in interface ShortSortedSet
public 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 |