SetMultimap removeAll - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for SetMultimap removeAll method.

This code example shows how to use the following methods:containsKey, removeAll
    /** 
     * Complete the transaction, and remove all events from inflight list. 
     * @param transactionID 
     */ 
    public boolean completeTransaction(Long transactionID) {
      if(!inflightEvents.containsKey(transactionID)) {
        return false; 
      } 
      inflightEvents.removeAll(transactionID);
      inflightFileIDs.removeAll(transactionID);
      syncRequired = true;
      return true; 
    } 
 
    /** 
     * Add an event pointer to the inflights list. 
     * @param transactionID 
     * @param pointer 
     */ 
    public void addEvent(Long transactionID, Long pointer){
4
CodeRank
This code example shows how to use the following methods:removeAll
     * @param edge 
     */ 
    void removeNotes(Edge edge) {
        if (LOG.isDebugEnabled()) 
            LOG.debug("Removing notes for edge: {}", edge);
        notesForEdge.removeAll(edge);
    } 
 
    /** 
     * Create a MatcherAndAlert, interning it if the note and matcher pair is already created. Note: 
     * we use the default Object.equals() for matchers, as they are mostly already singleton 
     * instances. 
     *  
     * @param noteMatcher 
     * @param note 
     * @return 
     */ 
    private MatcherAndAlert buildMatcherAndAlert(NoteMatcher noteMatcher, Alert note) {
        T2<NoteMatcher, Alert> key = new T2<>(noteMatcher, note);
        MatcherAndAlert interned = uniqueMatchers.get(key);
3
CodeRank
removeAll Method Overview
Removes all values associated with the key key. Because a SetMultimap has unique values for a given key, this method returns a Set, instead of the java.util.Collection specified in the Multimap interface.
See Code Examples for other Guava SetMultimap Methods: