package org.eclipse.collections.api.map.primitive;
import org.eclipse.collections.api.ShortIterable;
import org.eclipse.collections.api.block.function.primitive.ShortToByteFunction;
import org.eclipse.collections.api.block.function.primitive.ByteFunction;
import org.eclipse.collections.api.block.function.primitive.ByteFunction0;
import org.eclipse.collections.api.block.function.primitive.ByteToByteFunction;
import org.eclipse.collections.api.block.function.primitive.ShortByteToByteFunction;
import org.eclipse.collections.api.block.predicate.primitive.ShortBytePredicate;
import org.eclipse.collections.api.tuple.primitive.ShortBytePair;
public interface MutableShortByteMap extends ShortByteMap, MutableByteValuesMap
{
void put(short key, byte value);
default void putPair(ShortBytePair keyValuePair)
{
this.put(keyValuePair.getOne(), keyValuePair.getTwo());
}
void putAll(ShortByteMap map);
void updateValues(ShortByteToByteFunction function);
void removeKey(short key);
void remove(short key);
byte removeKeyIfAbsent(short key, byte value);
byte getIfAbsentPut(short key, byte value);
byte getIfAbsentPut(short key, ByteFunction0 function);
byte getIfAbsentPutWithKey(short key, ShortToByteFunction function);
<P> byte getIfAbsentPutWith(short key, ByteFunction<? super P> function, P parameter);
byte updateValue(short key, byte initialValueIfAbsent, ByteToByteFunction function);
@Override
MutableByteShortMap flipUniqueValues();
@Override
MutableShortByteMap select(ShortBytePredicate predicate);
@Override
MutableShortByteMap reject(ShortBytePredicate predicate);
MutableShortByteMap withKeyValue(short key, byte value);
MutableShortByteMap withoutKey(short key);
MutableShortByteMap withoutAllKeys(ShortIterable keys);
default MutableShortByteMap withAllKeyValues(Iterable<ShortBytePair> keyValuePairs)
{
for (ShortBytePair keyValuePair : keyValuePairs)
{
this.putPair(keyValuePair);
}
return this;
}
MutableShortByteMap asUnmodifiable();
MutableShortByteMap asSynchronized();
byte addToValue(short key, byte toBeAdded);
}