public void removeAll(String name) { delegate.removeAll(name); }
public List<String> remove(HeaderName hn) { return delegate.removeAll(hn); }
public ContextException clearContext(String key) { context.removeAll(key); return this; }
/** * Replace any/all entries with this key, with this single entry. * * @param name * @param value */ public void set(String name, String value) { delegate.removeAll(name); delegate.put(name, value); }
@Override public List<V> removeAll(Object key) { synchronized (mutex) { return delegate().removeAll(key); // copy not synchronized } }
/** * Remove a mapping identified by the given alias. * * @param alias The alias * @return The previous mapping associated with the alias, if one was found */ public synchronized Collection<CommandMapping> remove(String alias) { return this.commands.removeAll(alias.toLowerCase()); }
public void set(HeaderName hn, String value) { delegate.removeAll(hn); if (value != null) { delegatePut(hn, value); } }
public List<String> remove(HeaderName hn) { return delegate.removeAll(hn); }
public void removeAll(String name) { delegate.removeAll(name); }
@Override public List<V> removeAll(Object key) { synchronized (mutex) { return delegate().removeAll(key); // copy not synchronized } }
@Override public <U extends T> List<U> removeAll(Class<U> key) { return convertList(key, inner.removeAll(key)); }
/** * Replace any/all entries with this key, with this single entry. * * @param name * @param value */ public void set(String name, String value) { delegate.removeAll(name); delegate.put(name, value); }
private void processInvalidatedChunks(NetData.NetMessage message) { for (NetData.InvalidateChunkMessage chunk : message.getInvalidateChunkList()) { Vector3i chunkPos = NetMessageUtil.convert(chunk.getPos()); remoteWorldProvider.invalidateChunks(chunkPos); awaitingChunkReadyBlockUpdates.removeAll(chunkPos); awaitingChunkReadyBiomeUpdates.removeAll(chunkPos); awaitingChunkReadyExtraDataUpdates.removeAll(chunkPos); } }
@CanIgnoreReturnValue @Override public List<V> removeAll(@Nullable Object key) { return delegate().removeAll(key); }
public K remove(String name) { for (NottableString key : new ArrayList<>(listMultimap.keySet())) { if (key.equalsIgnoreCase(name)) { listMultimap.removeAll(key); } } return (K) this; }
public K remove(NottableString name) { for (NottableString key : new ArrayList<>(listMultimap.keySet())) { if (key.equalsIgnoreCase(name)) { listMultimap.removeAll(key); } } return (K) this; }
public void set(HeaderName hn, String value) { delegate.removeAll(hn); if (value != null) { delegatePut(hn, value); } }
@CanIgnoreReturnValue @Override public List<V> removeAll(@NullableDecl Object key) { return delegate().removeAll(key); }
@CanIgnoreReturnValue @Override public List<V> removeAll(@NullableDecl Object key) { return delegate().removeAll(key); }
public void testSynchronizedListMultimap() { ListMultimap<String, Integer> multimap = Multimaps.synchronizedListMultimap(ArrayListMultimap.<String, Integer>create()); multimap.putAll("foo", Arrays.asList(3, -1, 2, 4, 1)); multimap.putAll("bar", Arrays.asList(1, 2, 3, 1)); assertThat(multimap.removeAll("foo")).containsExactly(3, -1, 2, 4, 1).inOrder(); assertFalse(multimap.containsKey("foo")); assertThat(multimap.replaceValues("bar", Arrays.asList(6, 5))) .containsExactly(1, 2, 3, 1) .inOrder(); assertThat(multimap.get("bar")).containsExactly(6, 5).inOrder(); }