Code example for SetMultimap

Methods: get

0
	boolean containsRelation(Relation<ET,RT> rel) {
		return relations.containsEntry(rel.getType(), rel); 
	} 
	 
	public Set<Entity<ET,RT>> getEntities(ET type) {
		return entities.get(type);
	} 
	 
	public Set<Relation<ET,RT>> getRelations(RT type) {
		return relations.get(type);
	} 
	 
	Collection<Entity<ET,RT>> getAllEntities() { 
		return entities.values(); 
	} 
	 
}