@Beta protected class ForwardingMap.StandardKeySet extends java.util.AbstractSet<E>
Map.keySet()
in terms of the following methods: ForwardingMap.clear()
, ForwardingMap.containsKey(java.lang.Object)
, ForwardingMap.isEmpty()
, ForwardingMap.remove(java.lang.Object)
, ForwardingMap.size()
, and the Set.iterator()
method of
ForwardingMap.entrySet()
. In many cases, you may wish to override ForwardingMap.keySet()
to forward to this implementation or a subclass thereof.Constructor and Description |
---|
StandardKeySet()
Constructor for use by subclasses.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
contains(java.lang.Object o) |
void |
forEach(java.util.function.Consumer<? super K> action) |
boolean |
isEmpty() |
java.util.Iterator<K> |
iterator() |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
int |
size() |
add, addAll, containsAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public StandardKeySet()
public java.util.Iterator<K> iterator()
iterator
in interface java.lang.Iterable<K>
iterator
in interface java.util.Collection<K>
iterator
in interface java.util.Set<K>
iterator
in class java.util.AbstractCollection<K>
public void forEach(java.util.function.Consumer<? super K> action)
public int size()
size
in interface java.util.Collection<K>
size
in interface java.util.Set<K>
size
in class java.util.AbstractCollection<K>
public boolean isEmpty()
isEmpty
in interface java.util.Collection<K>
isEmpty
in interface java.util.Set<K>
isEmpty
in class java.util.AbstractCollection<K>
public boolean contains(java.lang.Object o)
contains
in interface java.util.Collection<K>
contains
in interface java.util.Set<K>
contains
in class java.util.AbstractCollection<K>
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection<K>
remove
in interface java.util.Set<K>
remove
in class java.util.AbstractCollection<K>
public void clear()
clear
in interface java.util.Collection<K>
clear
in interface java.util.Set<K>
clear
in class java.util.AbstractCollection<K>
public boolean removeAll(java.util.Collection<?> c)
removeAll
in interface java.util.Collection<E>
removeAll
in interface java.util.Set<E>
removeAll
in class java.util.AbstractSet<E>
public boolean retainAll(java.util.Collection<?> c)
retainAll
in interface java.util.Collection<E>
retainAll
in interface java.util.Set<E>
retainAll
in class java.util.AbstractCollection<E>
Copyright © 2010–2020 JBoss by Red Hat. All rights reserved.