From b0fa61893ab292d6833402313f31a5b23ba920f9 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Sun, 26 Jan 2020 17:42:27 -0500 Subject: [PATCH] Javadoc and comment. --- .../collections4/map/AbstractHashedMap.java | 26 ++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/collections4/map/AbstractHashedMap.java b/src/main/java/org/apache/commons/collections4/map/AbstractHashedMap.java index 8198baf16..2378d65ba 100644 --- a/src/main/java/org/apache/commons/collections4/map/AbstractHashedMap.java +++ b/src/main/java/org/apache/commons/collections4/map/AbstractHashedMap.java @@ -164,9 +164,10 @@ public class AbstractHashedMap extends AbstractMap implements Iterab } /** - * Initialise subclasses during construction, cloning or deserialization. + * Initialize subclasses during construction, cloning or deserialization. */ protected void init() { + // noop } //----------------------------------------------------------------------- @@ -763,6 +764,9 @@ public class AbstractHashedMap extends AbstractMap implements Iterab /** * MapIterator implementation. + * + * @param the type of the keys in the map + * @param the type of the values in the map */ protected static class HashMapIterator extends HashIterator implements MapIterator { @@ -834,6 +838,9 @@ public class AbstractHashedMap extends AbstractMap implements Iterab /** * EntrySet implementation. + * + * @param the type of the keys in the map + * @param the type of the values in the map */ protected static class EntrySet extends AbstractSet> { /** The parent map */ @@ -885,6 +892,9 @@ public class AbstractHashedMap extends AbstractMap implements Iterab /** * EntrySet iterator. + * + * @param the type of the keys in the map + * @param the type of the values in the map */ protected static class EntrySetIterator extends HashIterator implements Iterator> { @@ -929,6 +939,8 @@ public class AbstractHashedMap extends AbstractMap implements Iterab /** * KeySet implementation. + * + * @param the type of elements maintained by this set */ protected static class KeySet extends AbstractSet { /** The parent map */ @@ -969,6 +981,8 @@ public class AbstractHashedMap extends AbstractMap implements Iterab /** * KeySet iterator. + * + * @param the type of elements maintained by this set */ protected static class KeySetIterator extends HashIterator implements Iterator { @@ -1014,6 +1028,8 @@ public class AbstractHashedMap extends AbstractMap implements Iterab /** * Values implementation. + * + * @param the type of elements maintained by this collection */ protected static class Values extends AbstractCollection { /** The parent map */ @@ -1047,6 +1063,8 @@ public class AbstractHashedMap extends AbstractMap implements Iterab /** * Values iterator. + * + * @param the type of elements maintained by this collection */ protected static class ValuesIterator extends HashIterator implements Iterator { @@ -1069,6 +1087,9 @@ public class AbstractHashedMap extends AbstractMap implements Iterab * then you will not be able to access the protected fields. * The {@code entryXxx()} methods on {@code AbstractHashedMap} exist * to provide the necessary access. + * + * @param the type of the keys + * @param the type of the values */ protected static class HashEntry implements Map.Entry, KeyValue { /** The next entry in the hash chain */ @@ -1139,6 +1160,9 @@ public class AbstractHashedMap extends AbstractMap implements Iterab /** * Base Iterator + * + * @param the type of the keys in the map + * @param the type of the values in the map */ protected static abstract class HashIterator {