Re: [math] Question of taste: 'ObjectArrayList'

2010-01-10 Thread Benson Margulies
p.s. .sdrawkcab si od I gnihtyreve os cibaraA tuoba gnikniht neeb evah I. On Sun, Jan 10, 2010 at 4:38 PM, Ted Dunning wrote: > I take it that the point of this code is to allow filling an ArrayList with > null values efficiently.  This might sometimes be useful, I suppose. > > It sounds like yo

Re: [math] Question of taste: 'ObjectArrayList'

2010-01-10 Thread Benson Margulies
Ted, I had much the same thoughts while driving to the grocery store after sending that message. Death to the class, and I'll clean up the implementation of the users of the resize business. --benson On Sun, Jan 10, 2010 at 4:38 PM, Ted Dunning wrote: > I take it that the point of this code i

Re: [math] Question of taste: 'ObjectArrayList'

2010-01-10 Thread Ted Dunning
I take it that the point of this code is to allow filling an ArrayList with null values efficiently. This might sometimes be useful, I suppose. It sounds like you are saying that the virtue of the ObjectArrayList is that we own it and can make this resizing method efficient. I don't see any adva

Re: [math] Question of taste: 'ObjectArrayList'

2010-01-10 Thread Sean Owen
I weakly vote for chucking it out. On Sun, Jan 10, 2010 at 8:17 PM, Benson Margulies wrote: > Colt brought us 'ObjectArrayList'. You might ask, what advantage does > it have over ArrayList? >

[math] Question of taste: 'ObjectArrayList'

2010-01-10 Thread Benson Margulies
Colt brought us 'ObjectArrayList'. You might ask, what advantage does it have over ArrayList? Well, I just found myself writing the following to use ArrayList in the xxxObjectHashMap set. I could rework ObjectArrayList to be a subclass of ArrayList that provided this efficiently, instead of my cur