public < V > Set < T > getByField ( 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 . getByField ( value ) ; }
Gets a subset of objects with the specified field value . If there is no object with the specified field value a newly created empty set is returned .