Re: NegativeArraySizeException ... IndexOutOfBoundsException ...
On Sat, 2 Jan 2010, Tom Anderson wrote:
On Sat, 2 Jan 2010, Albretch Mueller wrote:
This discussion started with comp.lang.java.programmer:
"java.lang.Rational" I will publish the algorithm/results of my code within
a week. Some of use believe such a library should be included by Sun
The problem of a bigger-than-int list has certainly come up before, and
a general-purpose implementation would be useful. In fact, i'd be mildly
surprised if there wasn't already one in either the Apache or Google
collections libraries - have you checked those?
Hmm, it seems they don't. Nor does Javolution.
If anyone's interested in writing a long-indexed list, i've had a quick
cut at the groundwork (compiled, but neither tested nor documented!):
http://urchin.earth.li/~twic/Code/BigCollections/
All you'd need to do to implement a big list would be to subclass
AbstractBigList and fill in the blanks.
tom
--
History, I believe, furnishes no example of a priest-ridden people
maintaining a free civil government. -- Thomas Jefferson