- Original message
From: Jack, Paul [EMAIL PROTECTED]
I too like the ComparatorUtils concept outlined below.
However, we might
want to consider whether the method names are nullFirst(Comparator) or
nullFirstComparator(Comparator) etc. I raise this because
I too like the ComparatorUtils concept outlined below.
However, we might
want to consider whether the method names are nullFirst(Comparator) or
nullFirstComparator(Comparator) etc. I raise this because
PredicateUtils
uses the latter at the moment, and it would be nice to be
consistent
change PredicateUtils if required).
Stephen
- Original Message -
From: Jack, Paul [EMAIL PROTECTED]
To: 'Jakarta Commons Developers List' [EMAIL PROTECTED]
Sent: Friday, June 07, 2002 9:09 PM
Subject: RE: [Collections] ComparableComparator - nulls OK
I like the idea of having
+1, In my sorts, having to deal with nulls is causing me difficulties as
well.. Although I could see something like any nulls being ignored as a
type of behavior.. Sort everything, and drop the nulls!
Eric
-Original Message-
From: Jonathan Carlson [mailto:[EMAIL PROTECTED]]
Sent:
I can't think of a how nulls could be dropped. The
Comparator API only allows for returning a -1, 0, or +1.
But thanks for the support for the option of sorting nulls
to the bottom.
Jonathan
=
Jonathan Carlson
[EMAIL PROTECTED]
Minneapolis, Minnesota
, 2002 4:00 PM
To: Jakarta Commons Developers List
Subject: RE: [Collections] ComparableComparator - nulls OK
On Fri, 7 Jun 2002, Eric Pugh wrote:
+1, In my sorts, having to deal with nulls is causing me
difficulties
+as
well.. Although I could see something like any nulls being
I'm +1 on sorting to the bottom. Would it harm for this to be a default?
ie) no ClassCastException anymore?
On Fri, 7 Jun 2002, Jonathan Carlson wrote:
I can't think of a how nulls could be dropped. The
Comparator API only allows for returning a -1, 0, or +1.
But thanks for the support for
?
-Paul
-Original Message-
From: Michael A. Smith [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 07, 2002 1:00 PM
To: Jakarta Commons Developers List
Subject: RE: [Collections] ComparableComparator - nulls OK
On Fri, 7 Jun 2002, Eric Pugh wrote:
+1, In my sorts, having to deal