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.contains()
Date Sun, 03 Aug 2003 10:38:32 GMT
Hadn't thought of that one, but I guess it makes sense. If you want to
supply a patch....;-)
Stephen

----- Original Message -----
From: "Tim O'Brien" <tobrien@discursive.com>
To: "Jakarta Commons Developers List" <commons-dev@jakarta.apache.org>
Sent: Sunday, August 03, 2003 4:17 AM
Subject: [lang] ArrayUtils.contains()


> Has anyone thought of adding a tolerance to ArrayUtils when trying to
calls
> contains, indexOf, of lastIndexOf for a floating point number?
>
> boolean ArrayUtils.contains(double[] array, double valueToFind, double
tolerance)
>
> The method would return true if array contained a double value in
valueToFind +/- tolerance.
>
> Any thoughts?
>
> Tim
>
>
> ---------------------------------------------------------------------
> 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