commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Colebourne" <scolebou...@btopenworld.com>
Subject Re: [lang] ArrayUtils.isAscending, isDescending
Date Thu, 01 Apr 2004 19:24:43 GMT
Actually I would argue against. I think [lang] can supply methods to do the
sort, but specific sort test methods doesn't feel right.

For an Object[], having an
 isSorted(Object[], Comparator)
would make sense.

But there is no easy way to apply that kind of plugin for primitive arrays.
Consider me -0.

Stephen

----- Original Message -----
From: "Gary Gregory" <ggregory@seagullsw.com>
It seems quite sensible to me. The best would be for [math] to create a
[lang] bugzilla ticket and submit a patch with unit tests.

Thank you,
Gary

> -----Original Message-----
> From: Phil Steitz [mailto:phil@steitz.com]
> Sent: Thursday, April 01, 2004 09:17
> To: Jakarta Commons Developers List
> Subject: [lang] ArrayUtils.isAscending, isDescending
>
> In a few places in [math] we need to verify that double[] array
arguments
> are sorted.  Would methods such as these make sense in ArrayUtils?
> Considering all ordered types and strict vs. = would lead to quite a
few
> new methods.
>
> For now, we can just code what we need in [math], but I thought I
would
> toss this out for [lang] to consider.  Thoughts?
>
> Phil
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message