package org.eclipse.collections.api.map.primitive;
import org.eclipse.collections.api.CharIterable;
import org.eclipse.collections.api.block.function.primitive.CharFunction;
import org.eclipse.collections.api.block.function.primitive.CharFunction0;
import org.eclipse.collections.api.block.function.primitive.CharToCharFunction;
import org.eclipse.collections.api.block.function.primitive.CharCharToCharFunction;
import org.eclipse.collections.api.block.predicate.primitive.CharCharPredicate;
import org.eclipse.collections.api.tuple.primitive.CharCharPair;
public interface MutableCharCharMap extends CharCharMap, MutableCharValuesMap
{
void put(char key, char value);
default void putPair(CharCharPair keyValuePair)
{
this.put(keyValuePair.getOne(), keyValuePair.getTwo());
}
void putAll(CharCharMap map);
void updateValues(CharCharToCharFunction function);
void removeKey(char key);
void remove(char key);
char removeKeyIfAbsent(char key, char value);
char getIfAbsentPut(char key, char value);
char getIfAbsentPut(char key, CharFunction0 function);
char getIfAbsentPutWithKey(char key, CharToCharFunction function);
<P> char getIfAbsentPutWith(char key, CharFunction<? super P> function, P parameter);
char updateValue(char key, char initialValueIfAbsent, CharToCharFunction function);
@Override
MutableCharCharMap flipUniqueValues();
@Override
MutableCharCharMap select(CharCharPredicate predicate);
@Override
MutableCharCharMap reject(CharCharPredicate predicate);
MutableCharCharMap withKeyValue(char key, char value);
MutableCharCharMap withoutKey(char key);
MutableCharCharMap withoutAllKeys(CharIterable keys);
default MutableCharCharMap withAllKeyValues(Iterable<CharCharPair> keyValuePairs)
{
for (CharCharPair keyValuePair : keyValuePairs)
{
this.putPair(keyValuePair);
}
return this;
}
MutableCharCharMap asUnmodifiable();
MutableCharCharMap asSynchronized();
char addToValue(char key, char toBeAdded);
}