commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From morg...@apache.org
Subject cvs commit: jakarta-commons/collections/src/java/org/apache/commons/collections/comparators ComparatorChain.java
Date Fri, 01 Mar 2002 23:40:43 GMT
morgand     02/03/01 15:40:43

  Modified:    collections/src/java/org/apache/commons/collections/comparators
                        ComparatorChain.java
  Log:
  added separate methods for setting/changing sort order on a Comparator
  in the chain
  
  Revision  Changes    Path
  1.2       +13 -3     jakarta-commons/collections/src/java/org/apache/commons/collections/comparators/ComparatorChain.java
  
  Index: ComparatorChain.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/comparators/ComparatorChain.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ComparatorChain.java	1 Mar 2002 23:29:24 -0000	1.1
  +++ ComparatorChain.java	1 Mar 2002 23:40:43 -0000	1.2
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/comparators/ComparatorChain.java,v
1.1 2002/03/01 23:29:24 morgand Exp $
  - * $Revision: 1.1 $
  - * $Date: 2002/03/01 23:29:24 $
  + * $Header: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/comparators/ComparatorChain.java,v
1.2 2002/03/01 23:40:43 morgand Exp $
  + * $Revision: 1.2 $
  + * $Date: 2002/03/01 23:40:43 $
    *
    * ====================================================================
    *
  @@ -164,6 +164,16 @@
           } else {
               orderingBits.clear(index);
           }
  +    }
  +
  +    public void setForwardSort(int index) {
  +        checkLocked();
  +        orderingBits.clear(index);
  +    }
  +
  +    public void setReverseSort(int index) {
  +        checkLocked();
  +        orderingBits.set(index);
       }
   
       public void checkLocked() {
  
  
  

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


Mime
View raw message