@Override
    public boolean remove(@Nullable Object object) {
        final int index = indexOf(object);
        if (index >= 0) {
            removeAt(index);
            return true;
        }
        return false;
    }
Removes the specified object from this set.

@param object the object to remove.
@return {@code true} if this set was modified, {@code false} otherwise.
android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/util/collection/ArraySet.java