@Test public void UniqueContains() { for (int i = 0; i < 3; i++) { assertTrue(mSet.contains(mNonUniqueIntIndex, i)); } assertFalse(mSet.contains(mNonUniqueIntIndex, 4)); }
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); }
IndexedSet extends AbstractSet<T> { 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); } }
IndexedSet extends AbstractSet<T> { 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); } @SafeVarargs  IndexedSet(IndexDefinition<T, ?> primaryIndexDefinition,
      IndexDefinition<T, ?>... otherIndexDefinitions); }
IndexedSet extends AbstractSet<T> { 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); } @SafeVarargs  IndexedSet(IndexDefinition<T, ?> primaryIndexDefinition,
      IndexDefinition<T, ?>... otherIndexDefinitions); @Override void clear(); @Override boolean add(T object); @Override Iterator<T> iterator(); boolean contains(IndexDefinition<T, V> indexDefinition, V value); Set<T> getByField(IndexDefinition<T, V> indexDefinition, V value); T getFirstByField(IndexDefinition<T, V> indexDefinition, V value); @Override boolean remove(Object object); int removeByField(IndexDefinition<T, V> indexDefinition, V value); @Override int size(); }
IndexedSet extends AbstractSet<T> { 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); } @SafeVarargs  IndexedSet(IndexDefinition<T, ?> primaryIndexDefinition,
      IndexDefinition<T, ?>... otherIndexDefinitions); @Override void clear(); @Override boolean add(T object); @Override Iterator<T> iterator(); boolean contains(IndexDefinition<T, V> indexDefinition, V value); Set<T> getByField(IndexDefinition<T, V> indexDefinition, V value); T getFirstByField(IndexDefinition<T, V> indexDefinition, V value); @Override boolean remove(Object object); int removeByField(IndexDefinition<T, V> indexDefinition, V value); @Override int size();  }