Instead of newly creating an empty big array, now it fallsback to the default constructor.
This will allow it to have much better resizing performance, as instead of 0->1 on first add, it will go 0->10 (because of DEFAULT_EMPTY_BIG_ARRAY being used now).
The array based of remains the same; we need to ensure the same runtime type is kept, even if empty.
Instead of newly creating an empty big array, now it fallsback to the default constructor. This will allow it to have much better resizing performance, as instead of 0->1 on first add, it will go 0->10 (because of
DEFAULT_EMPTY_BIG_ARRAY
being used now).The array based
of
remains the same; we need to ensure the same runtime type is kept, even if empty.Also minor doc updates to
ArrayList
as well.