code: public <V> boolean contains(IndexDefinition<T, V> indexDefinition, V value) {
      FieldIndex<T, V> index = (FieldIndex<T, V>) mIndices.get(indexDefinition);
      if (index == null) {
        throw new IllegalStateException("the given index isn't defined for this IndexedSet");
      }
      return index.containsField(value);
    }
docs: Whether there is an object with the specified index field value in the set.
  
  @param indexDefinition the field index definition
  @param value the field value
  @param <V> the field type
  @return true if there is one such object, otherwise false