Package com.tangosol.util
Class OpenHashMap.EntrySet
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<Map.Entry<K,V>>
-
- com.tangosol.util.AbstractKeyBasedMap.EntrySet
-
- com.tangosol.util.OpenHashMap.EntrySet
-
- All Implemented Interfaces:
Iterable
,Collection
,Set
- Enclosing class:
- OpenHashMap<K,V>
public class OpenHashMap.EntrySet extends AbstractKeyBasedMap.EntrySet
A set of entries backed by this map.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
OpenHashMap.EntrySet.Entry
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
OpenHashMap.EntrySet.EntrySetIterator
An Iterator over the EntrySet that is backed by the Map.
-
Constructor Summary
Constructors Constructor Description EntrySet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map.Entry
instantiateEntry(Object oKey, Object oValue)
Factory pattern.protected Iterator
instantiateIterator()
Factory pattern.Object[]
toArray()
Object[]
toArray(Object[] a)
-
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
-
-
-
-
Method Detail
-
toArray
public Object[] toArray()
- Specified by:
toArray
in interfaceCollection
- Specified by:
toArray
in interfaceSet
- Overrides:
toArray
in classAbstractCollection
-
toArray
public Object[] toArray(Object[] a)
- Specified by:
toArray
in interfaceCollection
- Specified by:
toArray
in interfaceSet
- Overrides:
toArray
in classAbstractCollection
-
instantiateEntry
protected Map.Entry instantiateEntry(Object oKey, Object oValue)
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
protected Iterator instantiateIterator()
Factory pattern.- Overrides:
instantiateIterator
in classAbstractKeyBasedMap.EntrySet
- Returns:
- a new instance of an Iterator over the EntrySet
-
-