com.gs.collections.api.map.primitive.MutableObjectIntMap Maven / Gradle / Ivy
/*
* Copyright 2014 Goldman Sachs.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.gs.collections.api.map.primitive;
import com.gs.collections.api.block.function.primitive.IntFunction;
import com.gs.collections.api.block.function.primitive.IntFunction0;
import com.gs.collections.api.block.function.primitive.IntToIntFunction;
import com.gs.collections.api.block.function.primitive.IntToObjectFunction;
import com.gs.collections.api.block.predicate.primitive.IntPredicate;
import com.gs.collections.api.block.predicate.primitive.ObjectIntPredicate;
import com.gs.collections.api.collection.MutableCollection;
import com.gs.collections.api.collection.primitive.MutableIntCollection;
import com.gs.collections.api.iterator.MutableIntIterator;
/**
* This file was automatically generated from template file mutableObjectPrimitiveMap.stg.
*
* @since 3.0.
*/
public interface MutableObjectIntMap extends ObjectIntMap
{
MutableIntIterator intIterator();
void clear();
void put(K key, int value);
void putAll(ObjectIntMap extends K> map);
void removeKey(K key);
void remove(Object key);
int removeKeyIfAbsent(K key, int value);
int getIfAbsentPut(K key, int value);
int getIfAbsentPut(K key, IntFunction0 function);
int getIfAbsentPutWithKey(K key, IntFunction super K> function);
int getIfAbsentPutWith(K key, IntFunction super P> function, P parameter);
int updateValue(K key, int initialValueIfAbsent, IntToIntFunction function);
MutableObjectIntMap select(ObjectIntPredicate super K> predicate);
MutableObjectIntMap reject(ObjectIntPredicate super K> predicate);
MutableIntCollection select(IntPredicate predicate);
MutableIntCollection reject(IntPredicate predicate);
MutableCollection collect(IntToObjectFunction extends V> function);
MutableObjectIntMap withKeyValue(K key, int value);
MutableObjectIntMap withoutKey(K key);
MutableObjectIntMap withoutAllKeys(Iterable extends K> keys);
MutableObjectIntMap asUnmodifiable();
MutableObjectIntMap asSynchronized();
int addToValue(K key, int toBeAdded);
}