commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1175013 - /commons/proper/functor/trunk/src/main/java/org/apache/commons/functor/core/algorithm/GeneratorContains.java
Date Fri, 23 Sep 2011 20:53:15 GMT
Author: simonetripodi
Date: Fri Sep 23 20:53:15 2011
New Revision: 1175013

URL: http://svn.apache.org/viewvc?rev=1175013&view=rev
Log:
added missing javadoc

Modified:
    commons/proper/functor/trunk/src/main/java/org/apache/commons/functor/core/algorithm/GeneratorContains.java

Modified: commons/proper/functor/trunk/src/main/java/org/apache/commons/functor/core/algorithm/GeneratorContains.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/src/main/java/org/apache/commons/functor/core/algorithm/GeneratorContains.java?rev=1175013&r1=1175012&r2=1175013&view=diff
==============================================================================
--- commons/proper/functor/trunk/src/main/java/org/apache/commons/functor/core/algorithm/GeneratorContains.java
(original)
+++ commons/proper/functor/trunk/src/main/java/org/apache/commons/functor/core/algorithm/GeneratorContains.java
Fri Sep 23 20:53:15 2011
@@ -26,6 +26,7 @@ import org.apache.commons.functor.genera
 /**
  * Tests whether a {@link Generator} contains an element that matches a {@link UnaryPredicate}.
  *
+ * @param <T> the predicate argument type.
  * @version $Revision$ $Date$
  */
 public final class GeneratorContains<T> implements BinaryPredicate<Generator<?
extends T>, UnaryPredicate<? super T>>,
@@ -34,18 +35,30 @@ public final class GeneratorContains<T> 
      * serialVersionUID declaration.
      */
     private static final long serialVersionUID = -1539983619621733276L;
+    /**
+     * A static {@link GeneratorContains} instance reference.
+     */
     private static final GeneratorContains<Object> INSTANCE = new GeneratorContains<Object>();
 
     /**
      * Helper procedure.
+     *
+     * @param <T> the predicate argument type.
      */
     private static class ContainsProcedure<T> implements UnaryProcedure<T> {
+        /**
+         * The wrapped predicate.
+         */
         private final UnaryPredicate<? super T> pred;
+        /**
+         * Flag to mark if the wrapped predicate succeeded or not.
+         */
         private boolean found;
 
         /**
          * Create a new ContainsProcedure.
-         * @pred test
+         *
+         * @param pred The wrapped predicate
          */
         public ContainsProcedure(UnaryPredicate<? super T> pred) {
             this.pred = pred;



Mime
View raw message