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