java.util
Class WeakHashMap.WeakEntrySet

java.lang.Object
java.util.AbstractCollection
java.util.AbstractSet
java.util.WeakHashMap.WeakEntrySet
- All Implemented Interfaces:
- Collection, java.lang.Iterable, Set
- Enclosing class:
- WeakHashMap
- private final class WeakHashMap.WeakEntrySet
- extends AbstractSet
The entry set. There is only one instance per hashmap, namely
theEntrySet. Note that the entry set may silently shrink, just
like the WeakHashMap.
|
Method Summary |
Iterator |
iterator()
Returns an iterator for all entries. |
int |
size()
Returns the size of this set. |
| Methods inherited from class java.util.AbstractCollection |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAllInternal, retainAll, retainAllInternal, toArray, toArray, toString |
WeakHashMap.WeakEntrySet
WeakHashMap.WeakEntrySet()
- Non-private constructor to reduce bytecode emitted.
size
public int size()
- Returns the size of this set.
- Specified by:
size in interface Set- Specified by:
size in class AbstractCollection
iterator
public Iterator iterator()
- Returns an iterator for all entries.
- Specified by:
iterator in interface Set- Specified by:
iterator in class AbstractCollection