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