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