commons-commits mailing list archives

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

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

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

Modified: commons/proper/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/ConditionalFunction.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/ConditionalFunction.java?rev=1180171&r1=1180170&r2=1180171&view=diff
==============================================================================
--- commons/proper/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/ConditionalFunction.java
(original)
+++ commons/proper/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/ConditionalFunction.java
Fri Oct  7 19:18:43 2011
@@ -38,6 +38,7 @@ import org.apache.commons.functor.Predic
  * an instance whose delegates are not all
  * <code>Serializable</code> will result in an exception.
  * </p>
+ * @param <T> the returned value type.
  * @version $Revision$ $Date$
  * @author Rodney Waldhoff
  */
@@ -47,12 +48,21 @@ public final class ConditionalFunction<T
      */
     private static final long serialVersionUID = 4214871352184887792L;
 
-    /** 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 Predicate ifPred;
+    /**
+     * the function executed if the condition is satisfied.
+     */
     private final Function<? extends T> thenFunc;
+    /**
+     * the function executed if the condition is not satisfied.
+     */
     private final Function<? extends T> elseFunc;
 
     // constructor



Mime
View raw message