- Type Parameters:
K
- the class of the keys in the entrySet
V
- the class of the values in the entrySet
- All Implemented Interfaces:
- java.lang.Iterable<java.util.Map.Entry<K,V>>, java.util.Collection<java.util.Map.Entry<K,V>>, java.util.Set<java.util.Map.Entry<K,V>>
public class MyReadOnlyEntrySet<K,V>
extends java.lang.Object
implements java.util.Set<java.util.Map.Entry<K,V>>
MyReadOnlyEntrySet is a class in which results from entrySet() method invocations can be wrapped. The wrapper returns a ReadOnlyIterator over the entries, instead of an updatable iterator, and that iterator returns ReadOnlyEntry objects, instead of Entry objects (which are updatable through setValue() ).
- Author:
- Erwin