commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r656303 - /commons/sandbox/functor/branches/mjbRadicalExperimentation/src/main/java/org/apache/commons/functor/core/composite/ConditionalProcedure.java
Date Wed, 14 May 2008 14:50:29 GMT
Author: mbenson
Date: Wed May 14 07:50:29 2008
New Revision: 656303

URL: http://svn.apache.org/viewvc?rev=656303&view=rev
Log:
add alt constructor

Modified:
    commons/sandbox/functor/branches/mjbRadicalExperimentation/src/main/java/org/apache/commons/functor/core/composite/ConditionalProcedure.java

Modified: commons/sandbox/functor/branches/mjbRadicalExperimentation/src/main/java/org/apache/commons/functor/core/composite/ConditionalProcedure.java
URL: http://svn.apache.org/viewvc/commons/sandbox/functor/branches/mjbRadicalExperimentation/src/main/java/org/apache/commons/functor/core/composite/ConditionalProcedure.java?rev=656303&r1=656302&r2=656303&view=diff
==============================================================================
--- commons/sandbox/functor/branches/mjbRadicalExperimentation/src/main/java/org/apache/commons/functor/core/composite/ConditionalProcedure.java
(original)
+++ commons/sandbox/functor/branches/mjbRadicalExperimentation/src/main/java/org/apache/commons/functor/core/composite/ConditionalProcedure.java
Wed May 14 07:50:29 2008
@@ -20,6 +20,7 @@
 
 import org.apache.commons.functor.Predicate;
 import org.apache.commons.functor.Procedure;
+import org.apache.commons.functor.core.NoOp;
 
 /**
  * A {@link Procedure Procedure}
@@ -53,6 +54,15 @@
      * Create a new ConditionalProcedure.
      * @param ifPred if
      * @param thenProc then
+     */
+    public ConditionalProcedure(Predicate ifPred, Procedure thenProc) {
+        this(ifPred, thenProc, NoOp.instance());
+    }
+
+    /**
+     * Create a new ConditionalProcedure.
+     * @param ifPred if
+     * @param thenProc then
      * @param elseProc else
      */
     public ConditionalProcedure(Predicate ifPred, Procedure thenProc, Procedure elseProc)
{



Mime
View raw message