commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1180180 - /commons/proper/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/ConditionalUnaryPredicate.java
Date Fri, 07 Oct 2011 19:32:54 GMT
Author: simonetripodi
Date: Fri Oct  7 19:32:53 2011
New Revision: 1180180

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

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

Modified: commons/proper/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/ConditionalUnaryPredicate.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/ConditionalUnaryPredicate.java?rev=1180180&r1=1180179&r2=1180180&view=diff
==============================================================================
--- commons/proper/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/ConditionalUnaryPredicate.java
(original)
+++ commons/proper/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/ConditionalUnaryPredicate.java
Fri Oct  7 19:32:53 2011
@@ -37,6 +37,7 @@ import org.apache.commons.functor.UnaryP
  * an instance whose delegates are not all
  * <code>Serializable</code> will result in an exception.
  * </p>
+ * @param <A> the predicate argument type.
  * @version $Revision$ $Date$
  * @author Rodney Waldhoff
  */
@@ -46,12 +47,21 @@ public final class ConditionalUnaryPredi
      */
     private static final long serialVersionUID = 1214714029872180155L;
 
-    /** 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 predicate executed if the condition is satisfied.
+     */
     private final UnaryPredicate<? super A> thenPred;
+    /**
+     * the predicate executed if the condition is not satisfied.
+     */
     private final UnaryPredicate<? super A> elsePred;
 
     // constructor



Mime
View raw message