RE: [Collections] ComparableComparator - nulls OK

2002-06-11 Thread Stephen Colebourne
- 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

RE: [Collections] ComparableComparator - nulls OK

2002-06-10 Thread Jack, Paul
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

Re: [Collections] ComparableComparator - nulls OK

2002-06-08 Thread Stephen Colebourne
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

RE: [Collections] ComparableComparator - nulls OK

2002-06-07 Thread Eric Pugh
+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:

RE: [Collections] ComparableComparator - nulls OK

2002-06-07 Thread Jonathan Carlson
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

RE: [Collections] ComparableComparator - nulls OK

2002-06-07 Thread Tim Moore
, 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

RE: [Collections] ComparableComparator - nulls OK

2002-06-07 Thread Henri Yandell
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

RE: [Collections] ComparableComparator - nulls OK

2002-06-07 Thread Jack, Paul
? -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