Package com.tangosol.util
Class OpenHashMap.EntrySet
java.lang.Object
java.util.AbstractCollection
java.util.AbstractSet
com.tangosol.util.AbstractKeyBasedMap.EntrySet
com.tangosol.util.OpenHashMap.EntrySet
- All Implemented Interfaces:
Iterable
,Collection
,Set
- Enclosing class:
OpenHashMap<K,
V>
A set of entries backed by this map.
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
An Entry implementation that is augmented to allow an Entry instance to be re-used, which means that the same Entry instance can represent different map entries over time.protected class
An Iterator over the EntrySet that is backed by the Map. -
Constructor Summary
-
Method Summary
Methods inherited from class com.tangosol.util.AbstractKeyBasedMap.EntrySet
clear, contains, isEmpty, iterator, remove, size
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
Methods inherited from class java.util.AbstractCollection
add, addAll, containsAll, retainAll, 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, retainAll, spliterator
-
Constructor Details
-
EntrySet
public EntrySet()
-
-
Method Details
-
toArray
- Specified by:
toArray
in interfaceCollection
- Specified by:
toArray
in interfaceSet
- Overrides:
toArray
in classAbstractCollection
-
toArray
- Specified by:
toArray
in interfaceCollection
- Specified by:
toArray
in interfaceSet
- Overrides:
toArray
in classAbstractCollection
-
instantiateEntry
Factory pattern. Create a Map Entry.- Overrides:
instantiateEntry
in classAbstractKeyBasedMap.EntrySet
- Parameters:
oKey
- the Entry key (required)oValue
- the Entry value (optional; lazy loaded if necessary)- Returns:
- a new instance of an Entry with the specified key and value (if one is provided)
-
instantiateIterator
Factory pattern.- Overrides:
instantiateIterator
in classAbstractKeyBasedMap.EntrySet
- Returns:
- a new instance of an Iterator over the EntrySet
-