package org.eclipse.collections.api.map.primitive;
import org.eclipse.collections.api.ShortIterable;
import org.eclipse.collections.api.block.function.primitive.ShortToFloatFunction;
import org.eclipse.collections.api.block.function.primitive.FloatFunction;
import org.eclipse.collections.api.block.function.primitive.FloatFunction0;
import org.eclipse.collections.api.block.function.primitive.FloatToFloatFunction;
import org.eclipse.collections.api.block.function.primitive.ShortFloatToFloatFunction;
import org.eclipse.collections.api.block.predicate.primitive.ShortFloatPredicate;
import org.eclipse.collections.api.tuple.primitive.ShortFloatPair;
public interface MutableShortFloatMap extends ShortFloatMap, MutableFloatValuesMap
{
void put(short key, float value);
default void putPair(ShortFloatPair keyValuePair)
{
this.put(keyValuePair.getOne(), keyValuePair.getTwo());
}
void putAll(ShortFloatMap map);
void updateValues(ShortFloatToFloatFunction function);
void removeKey(short key);
void remove(short key);
float removeKeyIfAbsent(short key, float value);
float getIfAbsentPut(short key, float value);
float getIfAbsentPut(short key, FloatFunction0 function);
float getIfAbsentPutWithKey(short key, ShortToFloatFunction function);
<P> float getIfAbsentPutWith(short key, FloatFunction<? super P> function, P parameter);
float updateValue(short key, float initialValueIfAbsent, FloatToFloatFunction function);
@Override
MutableFloatShortMap flipUniqueValues();
@Override
MutableShortFloatMap select(ShortFloatPredicate predicate);
@Override
MutableShortFloatMap reject(ShortFloatPredicate predicate);
MutableShortFloatMap withKeyValue(short key, float value);
MutableShortFloatMap withoutKey(short key);
MutableShortFloatMap withoutAllKeys(ShortIterable keys);
default MutableShortFloatMap withAllKeyValues(Iterable<ShortFloatPair> keyValuePairs)
{
for (ShortFloatPair keyValuePair : keyValuePairs)
{
this.putPair(keyValuePair);
}
return this;
}
MutableShortFloatMap asUnmodifiable();
MutableShortFloatMap asSynchronized();
float addToValue(short key, float toBeAdded);
}