package org.eclipse.collections.api.map.primitive;
import org.eclipse.collections.api.ShortIterable;
import org.eclipse.collections.api.block.function.primitive.ShortToLongFunction;
import org.eclipse.collections.api.block.function.primitive.LongFunction;
import org.eclipse.collections.api.block.function.primitive.LongFunction0;
import org.eclipse.collections.api.block.function.primitive.LongToLongFunction;
import org.eclipse.collections.api.block.predicate.primitive.ShortLongPredicate;
import org.eclipse.collections.api.tuple.primitive.ShortLongPair;
public interface MutableShortLongMap extends ShortLongMap, MutableLongValuesMap
{
void put(short key, long value);
default void putPair(ShortLongPair keyValuePair)
{
this.put(keyValuePair.getOne(), keyValuePair.getTwo());
}
void putAll(ShortLongMap map);
void removeKey(short key);
void remove(short key);
long removeKeyIfAbsent(short key, long value);
long getIfAbsentPut(short key, long value);
long getIfAbsentPut(short key, LongFunction0 function);
long getIfAbsentPutWithKey(short key, ShortToLongFunction function);
<P> long getIfAbsentPutWith(short key, LongFunction<? super P> function, P parameter);
long updateValue(short key, long initialValueIfAbsent, LongToLongFunction function);
@Override
MutableLongShortMap flipUniqueValues();
@Override
MutableShortLongMap select(ShortLongPredicate predicate);
@Override
MutableShortLongMap reject(ShortLongPredicate predicate);
MutableShortLongMap withKeyValue(short key, long value);
MutableShortLongMap withoutKey(short key);
MutableShortLongMap withoutAllKeys(ShortIterable keys);
MutableShortLongMap asUnmodifiable();
MutableShortLongMap asSynchronized();
long addToValue(short key, long toBeAdded);
}