You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by tn...@apache.org on 2015/06/02 00:42:18 UTC

svn commit: r1683020 - /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/map/PredicatedSortedMap.java

Author: tn
Date: Mon Jun  1 22:42:18 2015
New Revision: 1683020

URL: http://svn.apache.org/r1683020
Log:
Fix javadoc.

Modified:
    commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/map/PredicatedSortedMap.java

Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/map/PredicatedSortedMap.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/map/PredicatedSortedMap.java?rev=1683020&r1=1683019&r2=1683020&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/map/PredicatedSortedMap.java (original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/map/PredicatedSortedMap.java Mon Jun  1 22:42:18 2015
@@ -22,7 +22,7 @@ import java.util.SortedMap;
 import org.apache.commons.collections4.Predicate;
 
 /**
- * Decorates another <code>SortedMap </code> to validate that additions
+ * Decorates another <code>SortedMap</code> to validate that additions
  * match a specified predicate.
  * <p>
  * This map exists to provide validation for the decorated map.
@@ -30,7 +30,12 @@ import org.apache.commons.collections4.P
  * If an object cannot be added to the map, an IllegalArgumentException is thrown.
  * <p>
  * One usage would be to ensure that no null keys are added to the map.
- * <pre>SortedMap map = PredicatedSortedSet.decorate(new TreeMap(), NotNullPredicate.INSTANCE, null);</pre>
+ * <pre>
+ *   SortedMap map =
+ *     PredicatedSortedMap.predicatedSortedMap(new TreeMap(),
+ *                                             NotNullPredicate.notNullPredicate(),
+ *                                             null);
+ * </pre>
  * <p>
  * <strong>Note that PredicatedSortedMap is not synchronized and is not thread-safe.</strong>
  * If you wish to use this map from multiple threads concurrently, you must use