commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m..@apache.org
Subject cvs commit: jakarta-commons/collections/src/java/org/apache/commons/collections ComparatorUtils.java
Date Wed, 12 Jun 2002 04:28:22 GMT
mas         2002/06/11 21:28:22

  Modified:    collections/src/java/org/apache/commons/collections
                        ComparatorUtils.java
  Log:
  Renamed nullFirst and nullLast to nullLow and nullHigh.  "First" and
  "Last" don't really mean mcuh in the context of comparing two items.
  Especially if you consider the comparator being used for a maximum
  heap.
  
  Revision  Changes    Path
  1.2       +2 -2      jakarta-commons/collections/src/java/org/apache/commons/collections/ComparatorUtils.java
  
  Index: ComparatorUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/ComparatorUtils.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ComparatorUtils.java	11 Jun 2002 16:22:06 -0000	1.1
  +++ ComparatorUtils.java	12 Jun 2002 04:28:22 -0000	1.2
  @@ -115,7 +115,7 @@
        *  @return  a version of that comparator that allows nulls
        *  @see NullComparator
        */
  -    public static Comparator nullFirst(Comparator comparator) {
  +    public static Comparator nullLow(Comparator comparator) {
           if (comparator == null) comparator = NATURAL;
           return new NullComparator(comparator, false);
       }
  @@ -132,7 +132,7 @@
        *  @return  a version of that comparator that allows nulls
        *  @see NullComparator
        */
  -    public static Comparator nullLast(Comparator comparator) {
  +    public static Comparator nullHigh(Comparator comparator) {
           if (comparator == null) comparator = NATURAL;
           return new NullComparator(comparator, true);
       }
  
  
  

--
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