diff --git a/src/java/org/apache/commons/collections/comparators/ComparatorChain.java b/src/java/org/apache/commons/collections/comparators/ComparatorChain.java index 242e12707..39f024ee5 100644 --- a/src/java/org/apache/commons/collections/comparators/ComparatorChain.java +++ b/src/java/org/apache/commons/collections/comparators/ComparatorChain.java @@ -1,7 +1,7 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/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/jerenkrantz/tmp/commons/commons-convert/cvs/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 $ * * ==================================================================== * @@ -166,6 +166,16 @@ public class ComparatorChain implements Comparator,Serializable { } } + public void setForwardSort(int index) { + checkLocked(); + orderingBits.clear(index); + } + + public void setReverseSort(int index) { + checkLocked(); + orderingBits.set(index); + } + public void checkLocked() { if (isLocked == true) { throw new UnsupportedOperationException("Comparator ordering cannot be changed after the first comparison is performed");