package org.eclipse.collections.api.map.primitive;
import org.eclipse.collections.api.CharIterable;
import org.eclipse.collections.api.block.function.Function;
import org.eclipse.collections.api.block.function.Function0;
import org.eclipse.collections.api.block.function.Function2;
import org.eclipse.collections.api.block.function.primitive.CharToObjectFunction;
import org.eclipse.collections.api.block.predicate.primitive.CharObjectPredicate;
import org.eclipse.collections.api.block.procedure.Procedure;
import org.eclipse.collections.api.tuple.primitive.CharObjectPair;
public interface MutableCharObjectMap<V> extends CharObjectMap<V>, MutablePrimitiveObjectMap<V>
{
V put(char key, V value);
default V putPair(CharObjectPair<V> keyValuePair)
{
return this.put(keyValuePair.getOne(), keyValuePair.getTwo());
}
void putAll(CharObjectMap<? extends V> map);
V removeKey(char key);
V remove(char key);
V getIfAbsentPut(char key, V value);
V getIfAbsentPut(char key, Function0<? extends V> function);
V getIfAbsentPutWithKey(char key, CharToObjectFunction<? extends V> function);
<P> V getIfAbsentPutWith(char key, Function<? super P, ? extends V> function, P parameter);
V updateValue(char key, Function0<? extends V> factory, Function<? super V, ? extends V> function);
<P> V updateValueWith(char key, Function0<? extends V> factory, Function2<? super V, ? super P, ? extends V> function, P parameter);
@Override
MutableObjectCharMap<V> flipUniqueValues();
@Override
MutableCharObjectMap<V> tap(Procedure<? super V> procedure);
@Override
MutableCharObjectMap<V> select(CharObjectPredicate<? super V> predicate);
@Override
MutableCharObjectMap<V> reject(CharObjectPredicate<? super V> predicate);
MutableCharObjectMap<V> withKeyValue(char key, V value);
MutableCharObjectMap<V> withoutKey(char key);
MutableCharObjectMap<V> withoutAllKeys(CharIterable keys);
MutableCharObjectMap<V> asUnmodifiable();
MutableCharObjectMap<V> asSynchronized();
}