Code example for Collection

Methods: removeAll

0
    } 
 
    @Override public void primitivesRemoved(PrimitivesRemovedEvent event) {
        // Remove purged primitives (fix #8639) 
        try { 
            primitives.removeAll(event.getPrimitives());
        } catch (UnsupportedOperationException e) {
            if (event.getPrimitives().containsAll(primitives)) {
                primitives = Collections.emptyList();
            } else { 
                Main.warn("Unable to remove primitives from "+this);
            } 
        } 
    } 
 
    @Override public void primitivesAdded(PrimitivesAddedEvent event) {}
    @Override public void tagsChanged(TagsChangedEvent event) {}
    @Override public void nodeMoved(NodeMovedEvent event) {}
    @Override public void wayNodesChanged(WayNodesChangedEvent event) {}
    @Override public void relationMembersChanged(RelationMembersChangedEvent event) {}
Contextual code suggestions in your IDE  Get Codota for Java