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;
	}
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.

@param name the collection's name
@return all entities stored in the given collection.