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.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130716 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Smith 2002-06-12 04:28:22 +00:00
parent 404ad88cdc
commit 5fe503ec59
1 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ public class ComparatorUtils {
* @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 @@ public class ComparatorUtils {
* @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);
}