public List < Object > getEntities ( String name ) { List < Object > entitiesList = new LinkedList < Object > ( ) ; for ( Result result : results ) { if ( result . getResultName ( ) . equals ( name ) ) { entitiesList . add ( result . getObject ( ) ) ; } } return entitiesList ; }
Returns all entities stored in the given collection .