![JAR search and dependency download from the Maven repository](/logo.png)
javadoc.com.google.common.collect.ForwardingMap.StandardKeySet.html Maven / Gradle / Ivy
The newest version!
ForwardingMap.StandardKeySet (Guava: Google Core Libraries for Java 11.0.1 API)
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
com.google.common.collect
Class ForwardingMap.StandardKeySet
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<K>
com.google.common.collect.ForwardingMap.StandardKeySet
- All Implemented Interfaces:
- Iterable<K>, Collection<K>, Set<K>
- Enclosing class:
- ForwardingMap<K,V>
@Beta
protected class ForwardingMap.StandardKeySet
- extends AbstractSet<K>
A sensible implementation of 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.
- Since:
- 10.0
Constructor Summary | |
---|---|
ForwardingMap.StandardKeySet()
|
Method Summary | |
---|---|
void |
clear()
|
boolean |
contains(Object o)
|
boolean |
isEmpty()
|
Iterator<K> |
iterator()
|
boolean |
remove(Object o)
|
boolean |
removeAll(Collection<?> c)
|
int |
size()
|
Methods inherited from class java.util.AbstractSet |
---|
equals, hashCode |
Methods inherited from class java.util.AbstractCollection |
---|
add, addAll, containsAll, retainAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Set |
---|
add, addAll, containsAll, retainAll, toArray, toArray |
Constructor Detail |
---|
ForwardingMap.StandardKeySet
public ForwardingMap.StandardKeySet()
Method Detail |
---|
iterator
public Iterator<K> iterator()
- Specified by:
iterator
in interfaceIterable<K>
- Specified by:
iterator
in interfaceCollection<K>
- Specified by:
iterator
in interfaceSet<K>
- Specified by:
iterator
in classAbstractCollection<K>
size
public int size()
- Specified by:
size
in interfaceCollection<K>
- Specified by:
size
in interfaceSet<K>
- Specified by:
size
in classAbstractCollection<K>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceCollection<K>
- Specified by:
isEmpty
in interfaceSet<K>
- Overrides:
isEmpty
in classAbstractCollection<K>
contains
public boolean contains(Object o)
- Specified by:
contains
in interfaceCollection<K>
- Specified by:
contains
in interfaceSet<K>
- Overrides:
contains
in classAbstractCollection<K>
remove
public boolean remove(Object o)
- Specified by:
remove
in interfaceCollection<K>
- Specified by:
remove
in interfaceSet<K>
- Overrides:
remove
in classAbstractCollection<K>
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAll
in interfaceCollection<K>
- Specified by:
removeAll
in interfaceSet<K>
- Overrides:
removeAll
in classAbstractSet<K>
clear
public void clear()
- Specified by:
clear
in interfaceCollection<K>
- Specified by:
clear
in interfaceSet<K>
- Overrides:
clear
in classAbstractCollection<K>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2010-2012. All Rights Reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy