Class AbstractHashedMap.KeySet
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet
-
- org.apache.commons.collections.map.AbstractHashedMap.KeySet
-
- All Implemented Interfaces:
Iterable,Collection,Set
- Enclosing class:
- AbstractHashedMap
protected static class AbstractHashedMap.KeySet extends AbstractSet
KeySet implementation.
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstractHashedMapparentThe parent map
-
Constructor Summary
Constructors Modifier Constructor Description protectedKeySet(AbstractHashedMap parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontains(Object key)Iteratoriterator()booleanremove(Object key)intsize()-
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
-
Methods inherited from class java.util.AbstractCollection
add, addAll, containsAll, isEmpty, 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.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.Set
add, addAll, containsAll, isEmpty, retainAll, spliterator, toArray, toArray
-
-
-
-
Field Detail
-
parent
protected final AbstractHashedMap parent
The parent map
-
-
Constructor Detail
-
KeySet
protected KeySet(AbstractHashedMap parent)
-
-
Method Detail
-
size
public int size()
- Specified by:
sizein interfaceCollection- Specified by:
sizein interfaceSet- Specified by:
sizein classAbstractCollection
-
clear
public void clear()
- Specified by:
clearin interfaceCollection- Specified by:
clearin interfaceSet- Overrides:
clearin classAbstractCollection
-
contains
public boolean contains(Object key)
- Specified by:
containsin interfaceCollection- Specified by:
containsin interfaceSet- Overrides:
containsin classAbstractCollection
-
remove
public boolean remove(Object key)
- Specified by:
removein interfaceCollection- Specified by:
removein interfaceSet- Overrides:
removein classAbstractCollection
-
iterator
public Iterator iterator()
- Specified by:
iteratorin interfaceCollection- Specified by:
iteratorin interfaceIterable- Specified by:
iteratorin interfaceSet- Specified by:
iteratorin classAbstractCollection
-
-