package org.eclipse.collections.api.map.primitive;
import org.eclipse.collections.api.FloatIterable;
import org.eclipse.collections.api.block.function.primitive.FloatToDoubleFunction;
import org.eclipse.collections.api.block.function.primitive.DoubleFunction;
import org.eclipse.collections.api.block.function.primitive.DoubleFunction0;
import org.eclipse.collections.api.block.function.primitive.DoubleToDoubleFunction;
import org.eclipse.collections.api.block.function.primitive.FloatDoubleToDoubleFunction;
import org.eclipse.collections.api.block.predicate.primitive.FloatDoublePredicate;
import org.eclipse.collections.api.tuple.primitive.FloatDoublePair;
public interface MutableFloatDoubleMap extends FloatDoubleMap, MutableDoubleValuesMap
{
void put(float key, double value);
default void putPair(FloatDoublePair keyValuePair)
{
this.put(keyValuePair.getOne(), keyValuePair.getTwo());
}
void putAll(FloatDoubleMap map);
void updateValues(FloatDoubleToDoubleFunction function);
void removeKey(float key);
void remove(float key);
double removeKeyIfAbsent(float key, double value);
double getIfAbsentPut(float key, double value);
double getIfAbsentPut(float key, DoubleFunction0 function);
double getIfAbsentPutWithKey(float key, FloatToDoubleFunction function);
<P> double getIfAbsentPutWith(float key, DoubleFunction<? super P> function, P parameter);
double updateValue(float key, double initialValueIfAbsent, DoubleToDoubleFunction function);
@Override
MutableDoubleFloatMap flipUniqueValues();
@Override
MutableFloatDoubleMap select(FloatDoublePredicate predicate);
@Override
MutableFloatDoubleMap reject(FloatDoublePredicate predicate);
MutableFloatDoubleMap withKeyValue(float key, double value);
MutableFloatDoubleMap withoutKey(float key);
MutableFloatDoubleMap withoutAllKeys(FloatIterable keys);
default MutableFloatDoubleMap withAllKeyValues(Iterable<FloatDoublePair> keyValuePairs)
{
for (FloatDoublePair keyValuePair : keyValuePairs)
{
this.putPair(keyValuePair);
}
return this;
}
MutableFloatDoubleMap asUnmodifiable();
MutableFloatDoubleMap asSynchronized();
double addToValue(float key, double toBeAdded);
}