package org.eclipse.collections.api.map.primitive;
import org.eclipse.collections.api.FloatIterable;
import org.eclipse.collections.api.block.function.primitive.FloatToLongFunction;
import org.eclipse.collections.api.block.function.primitive.LongFunction;
import org.eclipse.collections.api.block.function.primitive.LongFunction0;
import org.eclipse.collections.api.block.function.primitive.LongToLongFunction;
import org.eclipse.collections.api.block.function.primitive.FloatLongToLongFunction;
import org.eclipse.collections.api.block.predicate.primitive.FloatLongPredicate;
import org.eclipse.collections.api.tuple.primitive.FloatLongPair;
public interface MutableFloatLongMap extends FloatLongMap, MutableLongValuesMap
{
void put(float key, long value);
default void putPair(FloatLongPair keyValuePair)
{
this.put(keyValuePair.getOne(), keyValuePair.getTwo());
}
void putAll(FloatLongMap map);
void updateValues(FloatLongToLongFunction function);
void removeKey(float key);
void remove(float key);
long removeKeyIfAbsent(float key, long value);
long getIfAbsentPut(float key, long value);
long getIfAbsentPut(float key, LongFunction0 function);
long getIfAbsentPutWithKey(float key, FloatToLongFunction function);
<P> long getIfAbsentPutWith(float key, LongFunction<? super P> function, P parameter);
long updateValue(float key, long initialValueIfAbsent, LongToLongFunction function);
@Override
MutableLongFloatMap flipUniqueValues();
@Override
MutableFloatLongMap select(FloatLongPredicate predicate);
@Override
MutableFloatLongMap reject(FloatLongPredicate predicate);
MutableFloatLongMap withKeyValue(float key, long value);
MutableFloatLongMap withoutKey(float key);
MutableFloatLongMap withoutAllKeys(FloatIterable keys);
default MutableFloatLongMap withAllKeyValues(Iterable<FloatLongPair> keyValuePairs)
{
for (FloatLongPair keyValuePair : keyValuePairs)
{
this.putPair(keyValuePair);
}
return this;
}
MutableFloatLongMap asUnmodifiable();
MutableFloatLongMap asSynchronized();
long addToValue(float key, long toBeAdded);
}