protected class AbstractLong2DoubleSortedMap.KeySet extends AbstractLongSortedSet
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractLong2DoubleSortedMap.KeySet() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
LongComparator |
comparator()
Returns the comparator associated with this sorted set, or null if it uses its elements' natural ordering.
|
boolean |
contains(long k) |
long |
firstLong() |
LongSortedSet |
headSet(long to) |
LongBidirectionalIterator |
iterator()
Returns a type-specific iterator on the elements of this collection.
|
LongBidirectionalIterator |
iterator(long from)
Returns a type-specific
BidirectionalIterator on the elements in
this set, starting from a given element of the domain (optional operation). |
long |
lastLong() |
int |
size() |
LongSortedSet |
subSet(long from,
long to) |
LongSortedSet |
tailSet(long from) |
first, headSet, last, longIterator, subSet, tailSetequals, hashCode, rem, remove, removeadd, add, addAll, addAll, contains, containsAll, containsAll, isEmpty, rem, removeAll, removeAll, retainAll, retainAll, toArray, toArray, toArray, toLongArray, toLongArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, containsAll, rem, removeAll, retainAll, toArray, toArray, toLongArray, toLongArrayprotected AbstractLong2DoubleSortedMap.KeySet()
public boolean contains(long k)
contains in interface LongCollectioncontains in class AbstractLongCollectionCollection.contains(Object)public int size()
size in interface Collection<Long>size in interface Set<Long>size in class AbstractCollection<Long>public void clear()
clear in interface Collection<Long>clear in interface Set<Long>clear in class AbstractCollection<Long>public LongComparator comparator()
LongSortedSetNote that this specification strengthens the one given in SortedSet.comparator().
SortedSet.comparator()public long firstLong()
SortedSet.first()public long lastLong()
SortedSet.last()public LongSortedSet headSet(long to)
SortedSet.headSet(Object)public LongSortedSet tailSet(long from)
SortedSet.tailSet(Object)public LongSortedSet subSet(long from, long to)
SortedSet.subSet(Object,Object)public LongBidirectionalIterator iterator(long from)
LongSortedSetBidirectionalIterator 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 LongBidirectionalIterator iterator()
LongCollectionNote 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 LongCollectioniterator in interface LongIterableiterator in interface LongSetiterator in interface LongSortedSetiterator in interface Iterable<Long>iterator in interface Collection<Long>iterator in interface Set<Long>iterator in class AbstractLongSortedSetCopyright © 2013. All Rights Reserved.