/** * {@inheritDoc} * * @deprecated Please use the corresponding type-specific method instead. */ @Deprecated @Override default boolean remove(final Object key) { return IntCollection.super.remove(key); } /**
/** * Removes given values mapped to a given key. * * @param key * The key to remove the given mapped value for. * @param values * The values to remove from the {@link IntCollection} of values mapped to the given * key. * @return {@code true} if at least one value was successfully removed. */ public boolean removeValues(final K key, final IntCollection values) { final boolean result; final C keyValues = decorated.get(key); if (values == null) { result = false; } else { result = keyValues.remove(values); if (result) { allValues.removeAll(values); } } return result; }
/** * {@inheritDoc} * * @deprecated Please use the corresponding type-specific method instead. */ @SuppressWarnings("deprecation") @Deprecated @Override default boolean remove(final Object o) { return IntCollection.super.remove(o); } /**
@Override @Deprecated public boolean remove(final Object k) { synchronized (sync) { return collection.remove(k); } } @Override
/** * {@inheritDoc} * * @deprecated Please use the corresponding type-specific method instead. */ @Deprecated @Override public boolean remove(final Object key) { return IntCollection.super.remove(key); } @Override
/** * Removes a given value mapped to a given key. * * @param key * The key to remove the given mapped value for. * @param value * The value to remove from the {@link IntCollection} of values mapped to the given * key. * @return {@code true} iff the value was successfully removed. */ public boolean removeValue(final K key, final int value) { final boolean result; final C values = decorated.get(key); if (values == null) { result = false; } else { result = values.remove(value); if (result) { allValues.remove(value); } } return result; }