Skip to content

Commit

Permalink
Javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Jan 27, 2024
1 parent 8e5940c commit 8ad5324
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/main/java/org/apache/commons/collections4/MapUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ public static <K, V> SortedMap<K, V> fixedSizeSortedMap(final SortedMap<K, V> ma
* equals 'true' ignoring case then {@code true} is returned, otherwise {@code false}. If the value is a
* {@code Number} an integer zero value returns {@code false} and non-zero returns {@code true}.
* Otherwise, {@code null} is returned.
* </p>
*
* @param <K> the key type
* @param map the map to use
Expand Down Expand Up @@ -1272,7 +1273,6 @@ public static <K, V> IterableSortedMap<K, V> iterableSortedMap(final SortedMap<K
* Map lazyMap = MapUtils.lazyMap(new HashMap(), factory);
* Object obj = lazyMap.get("test");
* </pre>
*
* <p>
* After the above code is executed, {@code obj} will contain a new {@code Date} instance. Furthermore,
* that {@code Date} instance is the value for the {@code "test"} key in the map.
Expand Down Expand Up @@ -1623,25 +1623,20 @@ private static void printIndent(final PrintStream out, final int indent) {
* <p>
* For example, to create a color map:
* </p>
*
* <pre>
* Map colorMap = MapUtils.putAll(new HashMap(),
* new String[][] { { "RED", "#FF0000" }, { "GREEN", "#00FF00" }, { "BLUE", "#0000FF" } });
* </pre>
*
* <p>
* or:
* </p>
*
* <pre>
* Map colorMap = MapUtils.putAll(new HashMap(),
* new String[] { "RED", "#FF0000", "GREEN", "#00FF00", "BLUE", "#0000FF" });
* </pre>
*
* <p>
* or:
* </p>
*
* <pre>
* Map colorMap = MapUtils.putAll(new HashMap(), new Map.Entry[] { new DefaultMapEntry("RED", "#FF0000"),
* new DefaultMapEntry("GREEN", "#00FF00"), new DefaultMapEntry("BLUE", "#0000FF") });
Expand Down Expand Up @@ -1734,7 +1729,6 @@ public static int size(final Map<?, ?> map) {
* <p>
* You must manually synchronize on the returned buffer's iterator to avoid non-deterministic behavior:
* </p>
*
* <pre>
* Map m = MapUtils.synchronizedMap(myMap);
* Sets s = m.keySet(); // outside synchronized block
Expand All @@ -1745,7 +1739,6 @@ public static int size(final Map<?, ?> map) {
* }
* }
* </pre>
*
* <p>
* This method uses the implementation in {@link java.util.Collections Collections}.
* </p>
Expand All @@ -1764,7 +1757,6 @@ public static <K, V> Map<K, V> synchronizedMap(final Map<K, V> map) {
* <p>
* You must manually synchronize on the returned buffer's iterator to avoid non-deterministic behavior:
* </p>
*
* <pre>
* Map m = MapUtils.synchronizedSortedMap(myMap);
* Sets s = m.keySet(); // outside synchronized block
Expand All @@ -1775,7 +1767,6 @@ public static <K, V> Map<K, V> synchronizedMap(final Map<K, V> map) {
* }
* }
* </pre>
*
* <p>
* This method uses the implementation in {@link java.util.Collections Collections}.
* </p>
Expand Down

0 comments on commit 8ad5324

Please sign in to comment.