On Monday, November 3, 2003, at 07:48 PM, Stephen Colebourne wrote:
I've updated the class in line with commons standards/documentation etc. It
will probably end up in the decorators subpackage, as it decorates other
collections.
A few style questions about this...
You have changed the array traversal to use the form:
public int size() {
int size = 0;
for (int i = this.all.length - 1; i >= 0 ; i--) {
size += this.all[i].size();
}
return size;
}Do you really see a performance gain from not dereferencing this.all.length on each cycle? If so, cool stuff!
-Brian
PGP.sig
Description: This is a digitally signed message part
