private final class CopyOnWriteArrayMap.ArrayKeySet<K,V> extends Object implements NavigableSet<K>
Modifier and Type | Field and Description |
---|---|
private CopyOnWriteArrayMap.ArrayHolder<K,V> |
holder |
Modifier | Constructor and Description |
---|---|
private |
ArrayKeySet(CopyOnWriteArrayMap.ArrayHolder<K,V> holder) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(K k) |
boolean |
addAll(Collection<? extends K> c) |
K |
ceiling(K k) |
void |
clear() |
Comparator<? super K> |
comparator() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
Iterator<K> |
descendingIterator() |
NavigableSet<K> |
descendingSet() |
K |
first() |
K |
floor(K k) |
SortedSet<K> |
headSet(K toElement) |
NavigableSet<K> |
headSet(K toElement,
boolean inclusive) |
K |
higher(K k) |
boolean |
isEmpty() |
Iterator<K> |
iterator() |
K |
last() |
K |
lower(K k) |
K |
pollFirst() |
K |
pollLast() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
NavigableSet<K> |
subSet(K fromElement,
boolean fromInclusive,
K toElement,
boolean toInclusive) |
SortedSet<K> |
subSet(K fromElement,
K toElement) |
SortedSet<K> |
tailSet(K fromElement) |
NavigableSet<K> |
tailSet(K fromElement,
boolean inclusive) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
spliterator
parallelStream, removeIf, stream
private final CopyOnWriteArrayMap.ArrayHolder<K,V> holder
private ArrayKeySet(CopyOnWriteArrayMap.ArrayHolder<K,V> holder)
public int size()
public boolean isEmpty()
public K pollFirst()
pollFirst
in interface NavigableSet<K>
public K pollLast()
pollLast
in interface NavigableSet<K>
public NavigableSet<K> descendingSet()
descendingSet
in interface NavigableSet<K>
public Iterator<K> descendingIterator()
descendingIterator
in interface NavigableSet<K>
public NavigableSet<K> subSet(K fromElement, boolean fromInclusive, K toElement, boolean toInclusive)
subSet
in interface NavigableSet<K>
public NavigableSet<K> headSet(K toElement, boolean inclusive)
headSet
in interface NavigableSet<K>
public NavigableSet<K> tailSet(K fromElement, boolean inclusive)
tailSet
in interface NavigableSet<K>
public Comparator<? super K> comparator()
comparator
in interface SortedSet<K>
public <T> T[] toArray(T[] a)
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<K>
containsAll
in interface Set<K>
public boolean addAll(Collection<? extends K> c)
public boolean retainAll(Collection<?> c)
public boolean removeAll(Collection<?> c)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.