Code example for HashMultimap

Methods: put

0
        if (cache.containsKey(entityId)) {
            leas = cache.get(entityId);
        } 
        leas.add(leaId);
        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)) {
Experience pair programming with AI  Get Codota for Java