Code example for Collection

Methods: isEmptyremove

0
     *  
     * @return true if this was the the last occurence of the signature 
     */ 
    public boolean remove(Tuple ps, Tuple signature) {
        Collection<Tuple> coll = matchings.get(signature);
        if (!coll.remove(ps)) {
            throw new IllegalStateException();
        } 
 
        boolean change = coll.isEmpty();
        if (change)
            matchings.remove(signature);
 
        return change;
    } 
 
    /** 
     * Retrieves entries that have the specified signature 
     *  
     * @return collection of matchings found 
Experience pair programming with AI  Get Codota for Java