- Type Parameters:
K
- The class of the keys in the collection that the iterator is over.
V
- The class of the values in the collection that the iterator is over.
- All Implemented Interfaces:
- java.util.Iterator<java.util.Map.Entry<K,V>>
public class MyReadOnlyEntryIterator<K,V>
extends java.lang.Object
implements java.util.Iterator<java.util.Map.Entry<K,V>>
MyReadOnlyEntryIterator is an Iterator implementation to be used in conjuction with read-only views on Maps. Such iterators must return Entry objects that do not allow setValue() calls.
- Author:
- Erwin