package org.eclipse.collections.api.map.primitive;
import org.eclipse.collections.api.FloatIterable;
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.FloatFloatToFloatFunction;
import org.eclipse.collections.api.block.predicate.primitive.FloatFloatPredicate;
import org.eclipse.collections.api.tuple.primitive.FloatFloatPair;
public interface MutableFloatFloatMap extends FloatFloatMap, MutableFloatValuesMap
{
void put(float key, float value);
default void putPair(FloatFloatPair keyValuePair)
{
this.put(keyValuePair.getOne(), keyValuePair.getTwo());
}
void putAll(FloatFloatMap map);
void updateValues(FloatFloatToFloatFunction function);
void removeKey(float key);
void remove(float key);
float removeKeyIfAbsent(float key, float value);
float getIfAbsentPut(float key, float value);
float getIfAbsentPut(float key, FloatFunction0 function);
float getIfAbsentPutWithKey(float key, FloatToFloatFunction function);
<P> float getIfAbsentPutWith(float key, FloatFunction<? super P> function, P parameter);
float updateValue(float key, float initialValueIfAbsent, FloatToFloatFunction function);
@Override
MutableFloatFloatMap flipUniqueValues();
@Override
MutableFloatFloatMap select(FloatFloatPredicate predicate);
@Override
MutableFloatFloatMap reject(FloatFloatPredicate predicate);
MutableFloatFloatMap withKeyValue(float key, float value);
MutableFloatFloatMap withoutKey(float key);
MutableFloatFloatMap withoutAllKeys(FloatIterable keys);
default MutableFloatFloatMap withAllKeyValues(Iterable<FloatFloatPair> keyValuePairs)
{
for (FloatFloatPair keyValuePair : keyValuePairs)
{
this.putPair(keyValuePair);
}
return this;
}
MutableFloatFloatMap asUnmodifiable();
MutableFloatFloatMap asSynchronized();
float addToValue(float key, float toBeAdded);
}