You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ch...@apache.org on 2017/07/11 17:55:34 UTC
[49/77] [abbrv] commons-collections git commit: javadoc + extension
point
javadoc + extension point
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/branches/collections_jdk5_branch@751865 13f79535-47bb-0310-9956-ffa450edef68
Project: http://git-wip-us.apache.org/repos/asf/commons-collections/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-collections/commit/783aa51f
Tree: http://git-wip-us.apache.org/repos/asf/commons-collections/tree/783aa51f
Diff: http://git-wip-us.apache.org/repos/asf/commons-collections/diff/783aa51f
Branch: refs/heads/collections_jdk5_branch
Commit: 783aa51f14cf9dd79826401f0e627ad2a47331da
Parents: 4306110
Author: Matthew Jason Benson <mb...@apache.org>
Authored: Mon Mar 9 22:06:27 2009 +0000
Committer: Matthew Jason Benson <mb...@apache.org>
Committed: Mon Mar 9 22:06:27 2009 +0000
----------------------------------------------------------------------
.../map/EntrySetToMapIteratorAdapter.java | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-collections/blob/783aa51f/src/java/org/apache/commons/collections/map/EntrySetToMapIteratorAdapter.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/commons/collections/map/EntrySetToMapIteratorAdapter.java b/src/java/org/apache/commons/collections/map/EntrySetToMapIteratorAdapter.java
index a9d3f43..e69ca9d 100644
--- a/src/java/org/apache/commons/collections/map/EntrySetToMapIteratorAdapter.java
+++ b/src/java/org/apache/commons/collections/map/EntrySetToMapIteratorAdapter.java
@@ -33,10 +33,14 @@ import org.apache.commons.collections.ResettableIterator;
* @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 @@ public class EntrySetToMapIteratorAdapter<K, V> implements MapIterator<K, V>, Re
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();
}