commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t.@apache.org
Subject svn commit: r1382173 - /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/ListUtils.java
Date Fri, 07 Sep 2012 21:13:00 GMT
Author: tn
Date: Fri Sep  7 21:12:58 2012
New Revision: 1382173

URL: http://svn.apache.org/viewvc?rev=1382173&view=rev
Log:
Javadoc fixes.

Modified:
    commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/ListUtils.java

Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/ListUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/ListUtils.java?rev=1382173&r1=1382172&r2=1382173&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/ListUtils.java
(original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/ListUtils.java
Fri Sep  7 21:12:58 2012
@@ -149,6 +149,7 @@ public class ListUtils {
      * <p>
      * A <code>null</code> predicate matches no elements.
      *
+     * @param <E>  the element type
      * @param inputCollection
      *            the collection to get the input from, may not be null
      * @param predicate
@@ -160,9 +161,9 @@ public class ListUtils {
      * @since 4.0
      * @see CollectionUtils#select(Collection, Predicate)
      */
-    public static <O> List<O> select(Collection<? extends O> inputCollection,
-            Predicate<? super O> predicate) {
-        return CollectionUtils.select(inputCollection, predicate, new ArrayList<O>(inputCollection.size()));
+    public static <E> List<E> select(Collection<? extends E> inputCollection,
+            Predicate<? super E> predicate) {
+        return CollectionUtils.select(inputCollection, predicate, new ArrayList<E>(inputCollection.size()));
     }
 
     /**
@@ -172,6 +173,7 @@ public class ListUtils {
      * If the input predicate is <code>null</code>, the result is an empty
      * list.
      *
+     * @param <E>  the element type
      * @param inputCollection
      *            the collection to get the input from, may not be null
      * @param predicate
@@ -183,9 +185,9 @@ public class ListUtils {
      * @since 4.0
      * @see CollectionUtils#selectRejected(Collection, Predicate)
      */
-    public static <O> List<O> selectRejected(Collection<? extends O> inputCollection,
-            Predicate<? super O> predicate) {
-        return CollectionUtils.selectRejected(inputCollection, predicate, new ArrayList<O>(inputCollection.size()));
+    public static <E> List<E> selectRejected(Collection<? extends E> inputCollection,
+            Predicate<? super E> predicate) {
+        return CollectionUtils.selectRejected(inputCollection, predicate, new ArrayList<E>(inputCollection.size()));
     }
 
     /**



Mime
View raw message