From 6937f0de2a232a11db00bf78b028b835f147294e Mon Sep 17 00:00:00 2001 From: Thomas Neidhart Date: Mon, 1 Jun 2015 22:42:18 +0000 Subject: [PATCH] Fix javadoc. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1683020 13f79535-47bb-0310-9956-ffa450edef68 --- .../commons/collections4/map/PredicatedSortedMap.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/collections4/map/PredicatedSortedMap.java b/src/main/java/org/apache/commons/collections4/map/PredicatedSortedMap.java index e9735b1cf..1f12b3d37 100644 --- a/src/main/java/org/apache/commons/collections4/map/PredicatedSortedMap.java +++ b/src/main/java/org/apache/commons/collections4/map/PredicatedSortedMap.java @@ -22,7 +22,7 @@ import java.util.SortedMap; import org.apache.commons.collections4.Predicate; /** - * Decorates another SortedMap to validate that additions + * Decorates another SortedMap to validate that additions * match a specified predicate. *

* This map exists to provide validation for the decorated map. @@ -30,7 +30,12 @@ import org.apache.commons.collections4.Predicate; * If an object cannot be added to the map, an IllegalArgumentException is thrown. *

* One usage would be to ensure that no null keys are added to the map. - *

SortedMap map = PredicatedSortedSet.decorate(new TreeMap(), NotNullPredicate.INSTANCE, null);
+ *
+ *   SortedMap map =
+ *     PredicatedSortedMap.predicatedSortedMap(new TreeMap(),
+ *                                             NotNullPredicate.notNullPredicate(),
+ *                                             null);
+ * 
*

* Note that PredicatedSortedMap is not synchronized and is not thread-safe. * If you wish to use this map from multiple threads concurrently, you must use