Author: mbenson
Date: Mon Mar 9 22:06:27 2009
New Revision: 751865
URL: http://svn.apache.org/viewvc?rev=751865&view=rev
Log:
javadoc + extension point
Modified:
commons/proper/collections/branches/collections_jdk5_branch/src/java/org/apache/commons/collections/map/EntrySetToMapIteratorAdapter.java
Modified:
commons/proper/collections/branches/collections_jdk5_branch/src/java/org/apache/commons/collections/map/EntrySetToMapIteratorAdapter.java
URL:
http://svn.apache.org/viewvc/commons/proper/collections/branches/collections_jdk5_branch/src/java/org/apache/commons/collections/map/EntrySetToMapIteratorAdapter.java?rev=751865&r1=751864&r2=751865&view=diff
==============================================================================
---
commons/proper/collections/branches/collections_jdk5_branch/src/java/org/apache/commons/collections/map/EntrySetToMapIteratorAdapter.java
(original)
+++
commons/proper/collections/branches/collections_jdk5_branch/src/java/org/apache/commons/collections/map/EntrySetToMapIteratorAdapter.java
Mon Mar 9 22:06:27 2009
@@ -33,10 +33,14 @@
* @author Matt Benson
*/
public class EntrySetToMapIteratorAdapter<K, V> implements MapIterator<K, V>,
ResettableIterator<K> {
- private Set<Map.Entry<K, V>> entrySet;
+ /** The adapted Map entry Set. */
+ protected Set<Map.Entry<K, V>> entrySet;
- private transient Iterator<Map.Entry<K, V>> iterator;
- private transient Map.Entry<K, V> entry;
+ /** The resettable iterator in use. */
+ protected transient Iterator<Map.Entry<K, V>> iterator;
+
+ /** The currently positioned Map entry. */
+ protected transient Map.Entry<K, V> entry;
/**
* Create a new EntrySetToMapIteratorAdapter.
@@ -97,7 +101,11 @@
entry = null;
}
- private synchronized Map.Entry<K, V> current() {
+ /**
+ * Get the currently active entry.
+ * @return Map.Entry<K, V>
+ */
+ protected synchronized Map.Entry<K, V> current() {
if (entry == null) {
throw new IllegalStateException();
}