package org.eclipse.collections.api.map.primitive;
import org.eclipse.collections.api.ByteIterable;
import org.eclipse.collections.api.block.function.primitive.ByteToShortFunction;
import org.eclipse.collections.api.block.function.primitive.ShortFunction;
import org.eclipse.collections.api.block.function.primitive.ShortFunction0;
import org.eclipse.collections.api.block.function.primitive.ShortToShortFunction;
import org.eclipse.collections.api.block.function.primitive.ByteShortToShortFunction;
import org.eclipse.collections.api.block.predicate.primitive.ByteShortPredicate;
import org.eclipse.collections.api.tuple.primitive.ByteShortPair;
public interface MutableByteShortMap extends ByteShortMap, MutableShortValuesMap
{
void put(byte key, short value);
default void putPair(ByteShortPair keyValuePair)
{
this.put(keyValuePair.getOne(), keyValuePair.getTwo());
}
void putAll(ByteShortMap map);
void updateValues(ByteShortToShortFunction function);
void removeKey(byte key);
void remove(byte key);
short removeKeyIfAbsent(byte key, short value);
short getIfAbsentPut(byte key, short value);
short getIfAbsentPut(byte key, ShortFunction0 function);
short getIfAbsentPutWithKey(byte key, ByteToShortFunction function);
<P> short getIfAbsentPutWith(byte key, ShortFunction<? super P> function, P parameter);
short updateValue(byte key, short initialValueIfAbsent, ShortToShortFunction function);
@Override
MutableShortByteMap flipUniqueValues();
@Override
MutableByteShortMap select(ByteShortPredicate predicate);
@Override
MutableByteShortMap reject(ByteShortPredicate predicate);
MutableByteShortMap withKeyValue(byte key, short value);
MutableByteShortMap withoutKey(byte key);
MutableByteShortMap withoutAllKeys(ByteIterable keys);
default MutableByteShortMap withAllKeyValues(Iterable<ByteShortPair> keyValuePairs)
{
for (ByteShortPair keyValuePair : keyValuePairs)
{
this.putPair(keyValuePair);
}
return this;
}
MutableByteShortMap asUnmodifiable();
MutableByteShortMap asSynchronized();
short addToValue(byte key, short toBeAdded);
}