public static <E> ArrayList<E> newArrayListWithCapacity(final int initialArraySize) {
        Requires.requireTrue(initialArraySize >= 0, "initialArraySize");
        return new ArrayList<>(initialArraySize);
    }
Creates an {@code ArrayList} instance backed by an array of the exact size specified;
equivalent to {@link ArrayList#ArrayList(int)}.
jraft-rheakv/rheakv-core/src/main/java/com/alipay/sofa/jraft/rhea/util/Lists.java