package org.eclipse.collections.api.map.primitive;
import org.eclipse.collections.api.FloatIterable;
import org.eclipse.collections.api.block.function.primitive.FloatToByteFunction;
import org.eclipse.collections.api.block.function.primitive.ByteFunction;
import org.eclipse.collections.api.block.function.primitive.ByteFunction0;
import org.eclipse.collections.api.block.function.primitive.ByteToByteFunction;
import org.eclipse.collections.api.block.function.primitive.FloatByteToByteFunction;
import org.eclipse.collections.api.block.predicate.primitive.FloatBytePredicate;
import org.eclipse.collections.api.tuple.primitive.FloatBytePair;
public interface MutableFloatByteMap extends FloatByteMap, MutableByteValuesMap
{
void put(float key, byte value);
default void putPair(FloatBytePair keyValuePair)
{
this.put(keyValuePair.getOne(), keyValuePair.getTwo());
}
void putAll(FloatByteMap map);
void updateValues(FloatByteToByteFunction function);
void removeKey(float key);
void remove(float key);
byte removeKeyIfAbsent(float key, byte value);
byte getIfAbsentPut(float key, byte value);
byte getIfAbsentPut(float key, ByteFunction0 function);
byte getIfAbsentPutWithKey(float key, FloatToByteFunction function);
<P> byte getIfAbsentPutWith(float key, ByteFunction<? super P> function, P parameter);
byte updateValue(float key, byte initialValueIfAbsent, ByteToByteFunction function);
@Override
MutableByteFloatMap flipUniqueValues();
@Override
MutableFloatByteMap select(FloatBytePredicate predicate);
@Override
MutableFloatByteMap reject(FloatBytePredicate predicate);
MutableFloatByteMap withKeyValue(float key, byte value);
MutableFloatByteMap withoutKey(float key);
MutableFloatByteMap withoutAllKeys(FloatIterable keys);
default MutableFloatByteMap withAllKeyValues(Iterable<FloatBytePair> keyValuePairs)
{
for (FloatBytePair keyValuePair : keyValuePairs)
{
this.putPair(keyValuePair);
}
return this;
}
MutableFloatByteMap asUnmodifiable();
MutableFloatByteMap asSynchronized();
byte addToValue(float key, byte toBeAdded);
}