commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim O'Brien <tobr...@discursive.com>
Subject [lang] ArrayUtils.contains()
Date Sun, 03 Aug 2003 03:17:25 GMT
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


Mime
View raw message