At 05:25 PM 30/08/01, you wrote:
>Hi Jim
>
>This does seems kinda expensive, turning a String into an integer for each
>value thats being compared in a collection. I would have thought it would be
>better making a small object that contained the String and the number.
>Something along the lines of
>
>public class NumericString implements Comparable {
> private String text;
> private int number;
>
> ...
>}
But they're not all numbers... Some are text Strings - and only those that
return true to isNumber are being converted...
Still, any pointers on how to improve are always gratefully received ;)
Jim
--
* Jim Cheesman *
Trabajo:
[EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
Perspective is in
the eye of the beholder.
- Re: Util dependency on Collections? Jari Worsley
- RE: Util dependency on Collections? Paulo Gaspar
- Re: Util dependency on Collections? James Strachan
- Re: Util dependency on Collections? Jari Worsley
- Re: Util dependency on Collections? Jim Cheesman
- Re: Util dependency on Collections? Jari Worsley
- Re: Util dependency on Collections? Jim Cheesman
- Re: Util dependency on Collections? bayard
- [Collections] NumericComparator Jim Cheesman
- Re: [Collections] NumericCompara... James Strachan
- Re: [Collections] NumericCompara... Jim Cheesman
- Re: [Collections] NumericCompara... James Strachan
- Re: Util dependency on Collectio... Charles Burdick
- Re: [Collections] NumericCompara... bayard
- Re: Util dependency on Collections? James Strachan
- Re: Util dependency on Collections? Jari Worsley
- RE: Util dependency on Collections? Paulo Gaspar
- RE: Util dependency on Collections? Paulo Gaspar
