void removeOp(Operator<?> opToRemove) { Set<Operator<?>> s = operatorToWorkOperators.get(opToRemove); s.remove(opToRemove); List<Operator<?>> c1 = ImmutableList.copyOf(s); if (!c1.isEmpty()) { for (Operator<?> op1 : c1) { operatorToWorkOperators.remove(op1, opToRemove); // Remove operator } operatorToWorkOperators.removeAll(opToRemove); // Remove entry for operator } }
void removeOpAndCombineWork(Operator<?> opToRemove, Operator<?> replacementOp) { Set<Operator<?>> s = operatorToWorkOperators.get(opToRemove); s.remove(opToRemove); List<Operator<?>> c1 = ImmutableList.copyOf(s); List<Operator<?>> c2 = ImmutableList.copyOf(operatorToWorkOperators.get(replacementOp)); if (!c1.isEmpty() && !c2.isEmpty()) { for (Operator<?> op1 : c1) { operatorToWorkOperators.remove(op1, opToRemove); // Remove operator operatorToWorkOperators.putAll(op1, c2); // Add ops of new collection } operatorToWorkOperators.removeAll(opToRemove); // Remove entry for operator for (Operator<?> op2 : c2) { operatorToWorkOperators.putAll(op2, c1); // Add ops to existing collection } } }
classesStartingWithPackage(new TreeSet<>(unsupportedMembers.keys()), allowedPkg)) { if (classIsInExactPackage(cls, allowedPkg)) { unsupportedMembers.removeAll(cls);
public void removeLocal(K key) { if (innerCache.containsKey(key)) { innerCache.removeAll(key); } }
public void remove(K key) { if (innerCache.containsKey(key)) { innerCache.removeAll(key); syncRemote(key, Broadcaster.EVENT.DROP); } }
/** * Removes all entries with the given value.<p> * * @param value the value */ public void removeValue(V value) { Set<K> keys = m_reverseMap.removeAll(value); for (K key : keys) { m_forwardMap.remove(key); } }
protected void removeDiscoveryService(DiscoveryService discoveryService) { this.discoveryServices.remove(discoveryService); discoveryService.removeDiscoveryListener(this); synchronized (cachedResults) { this.cachedResults.removeAll(discoveryService); } }
/** * Tries to link elements that have not been linked at their creation. * * @param reference the reference of the targeted element * @param id the identifier of the targeted element */ private void tryLink(final String reference, final Id id) { for (UnlinkedElement e : unlinkedElementsMap.removeAll(reference)) { addReference(e.id, e.name, e.index, e.many, e.containment, id); } }
public void removeLocal(K key) { if (innerCache.containsKey(key)) { innerCache.removeAll(key); } }
@Override public void synchronizeOnStmt(Stmt stmt, Runnable job) { leakedSources.add(stmt); if(otherSynchronizer.leakedSources.contains(stmt)) { job.run(); for(Runnable runnable : otherSynchronizer.pausedJobs.get(stmt)) { runnable.run(); } otherSynchronizer.pausedJobs.removeAll(stmt); } else { pausedJobs.put(stmt, job); } } }
public void remove(K key) { if (innerCache.containsKey(key)) { innerCache.removeAll(key); syncRemote(key, Broadcaster.EVENT.DROP); } }
clusterIndexes.put(id2, index1); tmpClusters.putAll(index1, tmpClusters.get(index2)); tmpClusters.removeAll(index2);
clusterIndexes.put(id2, index1); tmpClusters.putAll(index1, tmpClusters.get(index2)); tmpClusters.removeAll(index2);
clusterIndexes.put(id2, index1); theClusters.putAll(index1, theClusters.get(index2)); theClusters.removeAll(index2);
= memory.toroToDb.removeAll(toroUnnamed); if (dbUnnameds.isEmpty()) { //this can happen when there is no structure that matches the index return Collections.emptySet();
clusterIndexes.put(id2, index1); theClusters.putAll(index1, theClusters.get(index2)); theClusters.removeAll(index2);
component.networkStatus(ConnectionStatus.dropped(new NettyAddress(realAddress), Transport.UDT)); udtChannels.removeAll(realAddress);
classesStartingWithPackage(new TreeSet<>(unsupportedMembers.keys()), allowedPkg)) { if (classIsInExactPackage(cls, allowedPkg)) { unsupportedMembers.removeAll(cls);