Code example for HashMultimap

Methods: get

0
        cache.put(entityId, leas);
        inverse.put(leaId, entityId);
    } 
 
    public Set<String> ancestorEdorgs(String edorgId) {
        return inverse.get(edorgId);
    } 
 
    /** 
     * Gets the set of LEAs associated with the entity. 
     *  
     * @param entityId 
     * @return The set of leas for the specified entity id 
     */ 
    public Set<String> getEntriesById(String entityId) {
        if (!cache.containsKey(entityId)) {
            return new HashSet<String>();
        } 
        return cache.get(entityId);
    }