You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by si...@apache.org on 2011/10/07 21:52:58 UTC

svn commit: r1180188 - /commons/proper/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/ConditionalUnaryProcedure.java

Author: simonetripodi
Date: Fri Oct  7 19:52:58 2011
New Revision: 1180188

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

Modified:
    commons/proper/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/ConditionalUnaryProcedure.java

Modified: commons/proper/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/ConditionalUnaryProcedure.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/ConditionalUnaryProcedure.java?rev=1180188&r1=1180187&r2=1180188&view=diff
==============================================================================
--- commons/proper/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/ConditionalUnaryProcedure.java (original)
+++ commons/proper/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/ConditionalUnaryProcedure.java Fri Oct  7 19:52:58 2011
@@ -38,6 +38,7 @@ import org.apache.commons.functor.core.N
  * an instance whose delegates are not all
  * <code>Serializable</code> will result in an exception.
  * </p>
+ * @param <A> the argument type.
  * @version $Revision$ $Date$
  * @author Rodney Waldhoff
  */
@@ -47,12 +48,21 @@ public final class ConditionalUnaryProce
      */
     private static final long serialVersionUID = -895833369740247391L;
 
-    /** Base hash integer used to shift hash */
+    /** Base hash integer used to shift hash. */
     private static final int HASH_SHIFT = 4;
     // attributes
     // ------------------------------------------------------------------------
+    /**
+     * the condition to be evaluated.
+     */
     private final UnaryPredicate<? super A> ifPred;
+    /**
+     * the procedure executed if the condition is satisfied.
+     */
     private final UnaryProcedure<? super A> thenProc;
+    /**
+     * the procedure executed if the condition is not satisfied.
+     */
     private final UnaryProcedure<? super A> elseProc;
 
     // constructor