@Override public C removeAll(Object key) { C collection = this.map.remove(key); collection = collection == null ? this.createCollection() : collection; this.subtractFromTotalSize(collection.size()); return (C) collection.asUnmodifiable(); }
@Override public C removeAll(Object key) { C collection = this.map.remove(key); collection = collection == null ? this.createCollection() : collection; this.subtractFromTotalSize(collection.size()); return (C) collection.asUnmodifiable(); }
@Override public boolean remove(Object key, Object value) { C collection = this.map.get(key); if (collection == null) { return false; } boolean changed = collection.remove(value); if (changed) { this.decrementTotalSize(); if (collection.isEmpty()) { this.map.remove(key); } } return changed; }
@Override public boolean remove(Object key, Object value) { C collection = this.map.get(key); if (collection == null) { return false; } boolean changed = collection.remove(value); if (changed) { this.decrementTotalSize(); if (collection.isEmpty()) { this.map.remove(key); } } return changed; }
@Override public C removeAll(Object key) { C collection = this.map.remove(key); collection = collection == null ? this.createCollection() : collection; this.subtractFromTotalSize(collection.size()); return (C) collection.asUnmodifiable(); }
@Override public boolean remove(Object key, Object value) { C collection = this.map.get(key); if (collection == null) { return false; } boolean changed = collection.remove(value); if (changed) { this.decrementTotalSize(); if (collection.isEmpty()) { this.map.remove(key); } } return changed; }