public final class DynamicIntArray
extends Object
Dynamic int array that uses primitive types and chunks to avoid copying
large number of integers when it resizes.
The motivation for this class is memory optimization, i.e. space efficient
storage of potentially huge arrays without good a-priori size guesses.
The API of this class is between a primitive array and a AbstractList. It's
not a Collection implementation because it handles primitive types, but the
API could be extended to support iterators and the like.
NOTE: Like standard Collection implementations/arrays, this class is not
synchronized.