Package org.apache.sis.util.collection
Class WeakValueHashMap.EntrySet
- All Implemented Interfaces:
Iterable<Map.Entry<K,
,V>> Collection<Map.Entry<K,
,V>> Set<Map.Entry<K,
V>>
- Enclosing class:
- WeakValueHashMap<K,
V>
The set of entries.
- Since:
- 0.3
- Version:
- 0.3
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, retainAll, 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
-
Constructor Details
-
EntrySet
private EntrySet()
-
-
Method Details
-
size
public int size()Returns the number of entries in the map. -
toArray
Returns a view of this set as an array. Note that this array contains strong references. Consequently, no object reclamation will occur as long as a reference to this array is hold. -
iterator
Returns an iterator over the elements contained in this collection. No element from this set will be garbage collected as long as a reference to the iterator is hold.
-