public void addAll(@NonNull ArraySet<? extends E> array) {
        final int N = array.mSize;
        ensureCapacity(mSize + N);
        if (mSize == 0) {
            if (N > 0) {
                System.arraycopy(array.mHashes, 0, mHashes, 0, N);
                System.arraycopy(array.mArray, 0, mArray, 0, N);
                mSize = N;
            }
        } else {
            for (int i = 0; i < N; i++) {
                add(array.valueAt(i));
            }
        }
    }
Perform a {@link #add(Object)} of all values in <var>array</var>

@param array The array whose contents are to be retrieved.
android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/util/collection/ArraySet.java