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:09:34 UTC
svn commit: r1180160 -
/commons/proper/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/ConditionalBinaryFunction.java
Author: simonetripodi
Date: Fri Oct 7 19:09:33 2011
New Revision: 1180160
URL: http://svn.apache.org/viewvc?rev=1180160&view=rev
Log:
added missing javadoc comments
Modified:
commons/proper/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/ConditionalBinaryFunction.java
Modified: commons/proper/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/ConditionalBinaryFunction.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/ConditionalBinaryFunction.java?rev=1180160&r1=1180159&r2=1180160&view=diff
==============================================================================
--- commons/proper/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/ConditionalBinaryFunction.java (original)
+++ commons/proper/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/ConditionalBinaryFunction.java Fri Oct 7 19:09:33 2011
@@ -38,6 +38,9 @@ import org.apache.commons.functor.Binary
* an instance whose delegates are not all
* <code>Serializable</code> will result in an exception.
* </p>
+ * @param <L> the left argument type.
+ * @param <R> the right argument type.
+ * @param <T> the output function returned value type.
* @version $Revision$ $Date$
* @author Rodney Waldhoff
*/
@@ -47,12 +50,21 @@ public final class ConditionalBinaryFunc
*/
private static final long serialVersionUID = -994698971284481482L;
- /** 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 BinaryPredicate<? super L, ? super R> ifPred;
+ /**
+ * the function executed if the condition is satisfied.
+ */
private final BinaryFunction<? super L, ? super R, ? extends T> thenFunc;
+ /**
+ * the function executed if the condition is not satisfied.
+ */
private final BinaryFunction<? super L, ? super R, ? extends T> elseFunc;
// constructor