/** * Removes the mapping with the specified key/namespace composite key from this map. This method should be preferred * over {@link #removeAndGetOld(Object, Object)} when the caller is not interested in the old value, because this * can potentially reduce copy-on-write activity. * * @param key the key of the mapping to remove. Not null. * @param namespace the namespace of the mapping to remove. Not null. */ void remove(K key, N namespace) { removeEntry(key, namespace); }
/** * Removes the mapping with the specified key/namespace composite key from this map. This method should be preferred * over {@link #removeAndGetOld(Object, Object)} when the caller is not interested in the old value, because this * can potentially reduce copy-on-write activity. * * @param key the key of the mapping to remove. Not null. * @param namespace the namespace of the mapping to remove. Not null. */ void remove(K key, N namespace) { removeEntry(key, namespace); }
/** * Removes the mapping with the specified key/namespace composite key from this map. This method should be preferred * over {@link #removeAndGetOld(Object, Object)} when the caller is not interested in the old value, because this * can potentially reduce copy-on-write activity. * * @param key the key of the mapping to remove. Not null. * @param namespace the namespace of the mapping to remove. Not null. */ void remove(K key, N namespace) { removeEntry(key, namespace); }
/** * Removes the mapping with the specified key/namespace composite key from this map. This method should be preferred * over {@link #removeAndGetOld(Object, Object)} when the caller is not interested in the old value, because this * can potentially reduce copy-on-write activity. * * @param key the key of the mapping to remove. Not null. * @param namespace the namespace of the mapping to remove. Not null. */ void remove(K key, N namespace) { removeEntry(key, namespace); }
/** * Removes the mapping with the specified key/namespace composite key from this map, returning the state that was * found under the entry. * * @param key the key of the mapping to remove. Not null. * @param namespace the namespace of the mapping to remove. Not null. * @return the value of the removed mapping or {@code null} if no mapping * for the specified key was found. */ S removeAndGetOld(K key, N namespace) { final StateTableEntry<K, N, S> e = removeEntry(key, namespace); return e != null ? // copy-on-write check for state (e.stateVersion < highestRequiredSnapshotVersion ? getStateSerializer().copy(e.state) : e.state) : null; }
/** * Removes the mapping with the specified key/namespace composite key from this map, returning the state that was * found under the entry. * * @param key the key of the mapping to remove. Not null. * @param namespace the namespace of the mapping to remove. Not null. * @return the value of the removed mapping or {@code null} if no mapping * for the specified key was found. */ S removeAndGetOld(K key, N namespace) { final StateTableEntry<K, N, S> e = removeEntry(key, namespace); return e != null ? // copy-on-write check for state (e.stateVersion < highestRequiredSnapshotVersion ? getStateSerializer().copy(e.state) : e.state) : null; }
/** * Removes the mapping with the specified key/namespace composite key from this map, returning the state that was * found under the entry. * * @param key the key of the mapping to remove. Not null. * @param namespace the namespace of the mapping to remove. Not null. * @return the value of the removed mapping or {@code null} if no mapping * for the specified key was found. */ S removeAndGetOld(K key, N namespace) { final StateTableEntry<K, N, S> e = removeEntry(key, namespace); return e != null ? // copy-on-write check for state (e.stateVersion < highestRequiredSnapshotVersion ? getStateSerializer().copy(e.state) : e.state) : null; }
/** * Removes the mapping with the specified key/namespace composite key from this map, returning the state that was * found under the entry. * * @param key the key of the mapping to remove. Not null. * @param namespace the namespace of the mapping to remove. Not null. * @return the value of the removed mapping or {@code null} if no mapping * for the specified key was found. */ S removeAndGetOld(K key, N namespace) { final StateTableEntry<K, N, S> e = removeEntry(key, namespace); return e != null ? // copy-on-write check for state (e.stateVersion < highestRequiredSnapshotVersion ? getStateSerializer().copy(e.state) : e.state) : null; }