@Override
    public boolean contains(@Nullable Object key) {
        return indexOf(key) >= 0;
    }
Check whether a value exists in the set.

@param key The value to search for.
@return Returns true if the value exists, else false.
android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/util/collection/ArraySet.java