@Override
    public boolean containsAll(@NonNull Collection<?> collection) {
        Iterator<?> it = collection.iterator();
        while (it.hasNext()) {
            if (!contains(it.next())) {
                return false;
            }
        }
        return true;
    }
Determine if the array set contains all of the values in the given collection.

@param collection The collection whose contents are to be checked against.
@return Returns true if this array set contains a value for every entry
in <var>collection</var>, else returns false.
android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/util/collection/ArraySet.java