protected static <T> void grow(ArrayList<T> list, int size)
    {
        int previousSize = list.size();

        list.ensureCapacity(size);
        List<T> l = Collections.nCopies(size - previousSize, null);
        list.addAll(l);
    }
Base class for numeric id strategies.

@author David Yu
@created Mar 28, 2012
protostuff-runtime-registry/src/main/java/io/protostuff/runtime/NumericIdStrategy.java