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