package org.eclipse.collections.api.map.primitive;
import org.eclipse.collections.api.FloatIterable;
import org.eclipse.collections.api.block.function.primitive.FloatToBooleanFunction;
import org.eclipse.collections.api.block.function.primitive.BooleanFunction;
import org.eclipse.collections.api.block.function.primitive.BooleanFunction0;
import org.eclipse.collections.api.block.function.primitive.BooleanToBooleanFunction;
import org.eclipse.collections.api.block.function.primitive.FloatBooleanToBooleanFunction;
import org.eclipse.collections.api.block.predicate.primitive.FloatBooleanPredicate;
import org.eclipse.collections.api.tuple.primitive.FloatBooleanPair;
public interface MutableFloatBooleanMap extends FloatBooleanMap, MutableBooleanValuesMap
{
void put(float key, boolean value);
default void putPair(FloatBooleanPair keyValuePair)
{
this.put(keyValuePair.getOne(), keyValuePair.getTwo());
}
void putAll(FloatBooleanMap map);
void updateValues(FloatBooleanToBooleanFunction function);
void removeKey(float key);
void remove(float key);
boolean removeKeyIfAbsent(float key, boolean value);
boolean getIfAbsentPut(float key, boolean value);
boolean getIfAbsentPut(float key, BooleanFunction0 function);
boolean getIfAbsentPutWithKey(float key, FloatToBooleanFunction function);
<P> boolean getIfAbsentPutWith(float key, BooleanFunction<? super P> function, P parameter);
boolean updateValue(float key, boolean initialValueIfAbsent, BooleanToBooleanFunction function);
@Override
MutableFloatBooleanMap select(FloatBooleanPredicate predicate);
@Override
MutableFloatBooleanMap reject(FloatBooleanPredicate predicate);
MutableFloatBooleanMap withKeyValue(float key, boolean value);
MutableFloatBooleanMap withoutKey(float key);
MutableFloatBooleanMap withoutAllKeys(FloatIterable keys);
default MutableFloatBooleanMap withAllKeyValues(Iterable<FloatBooleanPair> keyValuePairs)
{
for (FloatBooleanPair keyValuePair : keyValuePairs)
{
this.putPair(keyValuePair);
}
return this;
}
MutableFloatBooleanMap asUnmodifiable();
MutableFloatBooleanMap asSynchronized();
}