package org.eclipse.collections.api.map.primitive;
import org.eclipse.collections.api.ByteIterable;
import org.eclipse.collections.api.block.function.primitive.ByteToCharFunction;
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.ByteCharToCharFunction;
import org.eclipse.collections.api.block.predicate.primitive.ByteCharPredicate;
import org.eclipse.collections.api.tuple.primitive.ByteCharPair;
public interface MutableByteCharMap extends ByteCharMap, MutableCharValuesMap
{
void put(byte key, char value);
default void putPair(ByteCharPair keyValuePair)
{
this.put(keyValuePair.getOne(), keyValuePair.getTwo());
}
void putAll(ByteCharMap map);
void updateValues(ByteCharToCharFunction function);
void removeKey(byte key);
void remove(byte key);
char removeKeyIfAbsent(byte key, char value);
char getIfAbsentPut(byte key, char value);
char getIfAbsentPut(byte key, CharFunction0 function);
char getIfAbsentPutWithKey(byte key, ByteToCharFunction function);
<P> char getIfAbsentPutWith(byte key, CharFunction<? super P> function, P parameter);
char updateValue(byte key, char initialValueIfAbsent, CharToCharFunction function);
@Override
MutableCharByteMap flipUniqueValues();
@Override
MutableByteCharMap select(ByteCharPredicate predicate);
@Override
MutableByteCharMap reject(ByteCharPredicate predicate);
MutableByteCharMap withKeyValue(byte key, char value);
MutableByteCharMap withoutKey(byte key);
MutableByteCharMap withoutAllKeys(ByteIterable keys);
default MutableByteCharMap withAllKeyValues(Iterable<ByteCharPair> keyValuePairs)
{
for (ByteCharPair keyValuePair : keyValuePairs)
{
this.putPair(keyValuePair);
}
return this;
}
MutableByteCharMap asUnmodifiable();
MutableByteCharMap asSynchronized();
char addToValue(byte key, char toBeAdded);
}