You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by rw...@apache.org on 2003/11/24 22:59:30 UTC

cvs commit: jakarta-commons-sandbox/functor/src/java/org/apache/commons/functor/core/collection CollectionAlgorithms.java

rwaldhoff    2003/11/24 13:59:30

  Modified:    functor/src/test/org/apache/commons/functor/core/collection
                        TestCollectionAlgorithms.java
               functor/src/test/org/apache/commons/functor/example
                        QuicksortExample.java
               functor/src/java/org/apache/commons/functor/core/collection
                        CollectionAlgorithms.java
  Log:
  deprecate CollectionAlgorithms, replaced by Algorithms
  
  Revision  Changes    Path
  1.7       +3 -2      jakarta-commons-sandbox/functor/src/test/org/apache/commons/functor/core/collection/TestCollectionAlgorithms.java
  
  Index: TestCollectionAlgorithms.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/functor/src/test/org/apache/commons/functor/core/collection/TestCollectionAlgorithms.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- TestCollectionAlgorithms.java	24 Nov 2003 20:12:17 -0000	1.6
  +++ TestCollectionAlgorithms.java	24 Nov 2003 21:59:30 -0000	1.7
  @@ -78,6 +78,7 @@
   
   /**
    * @version $Revision$ $Date$
  + * @deprecated The CollectionAlgorithms class has been deprecated
    * @author Rodney Waldhoff
    */
   public class TestCollectionAlgorithms extends TestCase {
  
  
  
  1.5       +5 -5      jakarta-commons-sandbox/functor/src/test/org/apache/commons/functor/example/QuicksortExample.java
  
  Index: QuicksortExample.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/functor/src/test/org/apache/commons/functor/example/QuicksortExample.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- QuicksortExample.java	24 Nov 2003 20:12:16 -0000	1.4
  +++ QuicksortExample.java	24 Nov 2003 21:59:30 -0000	1.5
  @@ -69,7 +69,7 @@
   import org.apache.commons.functor.UnaryFunction;
   import org.apache.commons.functor.adapter.RightBoundPredicate;
   import org.apache.commons.functor.core.ConstantFunction;
  -import org.apache.commons.functor.core.collection.CollectionAlgorithms;
  +import org.apache.commons.functor.Algorithms;
   import org.apache.commons.functor.core.collection.IsEmpty;
   import org.apache.commons.functor.core.comparator.IsGreaterThanOrEqual;
   import org.apache.commons.functor.core.comparator.IsLessThan;
  @@ -501,7 +501,7 @@
    */
       private BinaryFunction lesserTail = new ObjectListFunction() {
           public Object evaluate(Object head, List tail) {
  -            return CollectionAlgorithms.select(
  +            return Algorithms.select(
                   tail.iterator(),
                   RightBoundPredicate.bind(
                       IsLessThan.getIsLessThan(), 
  @@ -516,7 +516,7 @@
    */
       private BinaryFunction greaterTail = new BinaryFunction() {
           public Object evaluate(Object head, Object tail) {
  -            return CollectionAlgorithms.select(
  +            return Algorithms.select(
                   ((List)tail).iterator(),
                   RightBoundPredicate.bind(
                       IsGreaterThanOrEqual.instance(), 
  
  
  
  1.4       +3 -2      jakarta-commons-sandbox/functor/src/java/org/apache/commons/functor/core/collection/CollectionAlgorithms.java
  
  Index: CollectionAlgorithms.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/functor/src/java/org/apache/commons/functor/core/collection/CollectionAlgorithms.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- CollectionAlgorithms.java	19 Feb 2003 12:34:20 -0000	1.3
  +++ CollectionAlgorithms.java	24 Nov 2003 21:59:30 -0000	1.4
  @@ -71,6 +71,7 @@
    * Utility methods and algorithms for applying functors 
    * to {@link Collection Collections}.
    * 
  + * @deprecated Replaced by, or to be replaced by org.apache.commons.functor.Algorithms
    * @version $Revision$ $Date$
    * @author Rodney Waldhoff
    */
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org