protected class AbstractShort2BooleanSortedMap.KeySet extends AbstractShortSortedSet
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractShort2BooleanSortedMap.KeySet() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
ShortComparator |
comparator()
Returns the comparator associated with this sorted set, or null if it uses its elements' natural ordering.
|
boolean |
contains(short k) |
short |
firstShort() |
ShortSortedSet |
headSet(short to) |
ShortBidirectionalIterator |
iterator()
Returns a type-specific iterator on the elements of this collection.
|
ShortBidirectionalIterator |
iterator(short from)
Returns a type-specific
BidirectionalIterator on the elements in
this set, starting from a given element of the domain (optional operation). |
short |
lastShort() |
int |
size() |
ShortSortedSet |
subSet(short from,
short to) |
ShortSortedSet |
tailSet(short from) |
first, headSet, last, shortIterator, subSet, tailSetequals, hashCode, rem, remove, removeadd, add, addAll, addAll, contains, containsAll, containsAll, isEmpty, rem, removeAll, removeAll, retainAll, retainAll, toArray, toArray, toArray, toShortArray, toShortArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, containsAll, rem, removeAll, retainAll, toArray, toArray, toShortArray, toShortArrayprotected AbstractShort2BooleanSortedMap.KeySet()
public boolean contains(short k)
contains in interface ShortCollectioncontains in class AbstractShortCollectionCollection.contains(Object)public int size()
size in interface Collection<Short>size in interface Set<Short>size in class AbstractCollection<Short>public void clear()
clear in interface Collection<Short>clear in interface Set<Short>clear in class AbstractCollection<Short>public ShortComparator comparator()
ShortSortedSetNote that this specification strengthens the one given in SortedSet.comparator().
SortedSet.comparator()public short firstShort()
SortedSet.first()public short lastShort()
SortedSet.last()public ShortSortedSet headSet(short to)
SortedSet.headSet(Object)public ShortSortedSet tailSet(short from)
SortedSet.tailSet(Object)public ShortSortedSet subSet(short from, short to)
SortedSet.subSet(Object,Object)public ShortBidirectionalIterator iterator(short from)
ShortSortedSetBidirectionalIterator on the elements in
this set, starting from a given element of the domain (optional operation).
This method returns a type-specific bidirectional iterator with given
starting point. The starting point is any element comparable to the
elements of this set (even if it does not actually belong to the
set). The next element of the returned iterator is the least element of
the set that is greater than the starting point (if there are no
elements greater than the starting point, hasNext() will return
false). The previous element of the returned iterator is
the greatest element of the set that is smaller than or equal to the
starting point (if there are no elements smaller than or equal to the
starting point, hasPrevious() will return false).
Note that passing the last element of the set as starting point and
calling previous() you can traverse the
entire set in reverse order.
from - an element to start from.public ShortBidirectionalIterator iterator()
ShortCollectionNote that this specification strengthens the one given in
Iterable.iterator(), which was already
strengthened in the corresponding type-specific class,
but was weakened by the fact that this interface extends Collection.
iterator in interface ShortCollectioniterator in interface ShortIterableiterator in interface ShortSetiterator in interface ShortSortedSetiterator in interface Iterable<Short>iterator in interface Collection<Short>iterator in interface Set<Short>iterator in class AbstractShortSortedSetCopyright © 2013. All Rights Reserved.