package org.eclipse.collections.api.map.primitive;
import org.eclipse.collections.api.CharIterable;
import org.eclipse.collections.api.block.function.primitive.CharToBooleanFunction;
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.CharBooleanToBooleanFunction;
import org.eclipse.collections.api.block.predicate.primitive.CharBooleanPredicate;
import org.eclipse.collections.api.tuple.primitive.CharBooleanPair;
public interface MutableCharBooleanMap extends CharBooleanMap, MutableBooleanValuesMap
{
void put(char key, boolean value);
default void putPair(CharBooleanPair keyValuePair)
{
this.put(keyValuePair.getOne(), keyValuePair.getTwo());
}
void putAll(CharBooleanMap map);
void updateValues(CharBooleanToBooleanFunction function);
void removeKey(char key);
void remove(char key);
boolean removeKeyIfAbsent(char key, boolean value);
boolean getIfAbsentPut(char key, boolean value);
boolean getIfAbsentPut(char key, BooleanFunction0 function);
boolean getIfAbsentPutWithKey(char key, CharToBooleanFunction function);
<P> boolean getIfAbsentPutWith(char key, BooleanFunction<? super P> function, P parameter);
boolean updateValue(char key, boolean initialValueIfAbsent, BooleanToBooleanFunction function);
@Override
MutableCharBooleanMap select(CharBooleanPredicate predicate);
@Override
MutableCharBooleanMap reject(CharBooleanPredicate predicate);
MutableCharBooleanMap withKeyValue(char key, boolean value);
MutableCharBooleanMap withoutKey(char key);
MutableCharBooleanMap withoutAllKeys(CharIterable keys);
default MutableCharBooleanMap withAllKeyValues(Iterable<CharBooleanPair> keyValuePairs)
{
for (CharBooleanPair keyValuePair : keyValuePairs)
{
this.putPair(keyValuePair);
}
return this;
}
MutableCharBooleanMap asUnmodifiable();
MutableCharBooleanMap asSynchronized();
}