Package com.macrofocus.molap.util
Class JCFObjectIntMap<K>
- java.lang.Object
-
- com.macrofocus.molap.util.JCFObjectIntMap<K>
-
- All Implemented Interfaces:
ObjectIntMap<K>
public final class JCFObjectIntMap<K> extends java.lang.Object implements ObjectIntMap<K>
Created by luc on 10.02.17.
-
-
Constructor Summary
Constructors Constructor Description JCFObjectIntMap(int initialCapacity, int noEntryValue)
JCFObjectIntMap(java.util.HashMap<java.lang.Object,java.lang.Integer> map, int noEntryValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
adjustOrPutValue(K key, int adjust_amount, int put_amount)
boolean
adjustValue(K key, int amount)
void
clear()
boolean
containsKey(K key)
boolean
containsValue(int value)
ObjectIntMap<K>
copy(K... keysToRemove)
int
get(K key)
boolean
isEmpty()
int
put(K key, int value)
int
remove(K key)
int
size()
-
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clear
in interfaceObjectIntMap<K>
-
containsKey
public boolean containsKey(K key)
- Specified by:
containsKey
in interfaceObjectIntMap<K>
-
containsValue
public boolean containsValue(int value)
- Specified by:
containsValue
in interfaceObjectIntMap<K>
-
get
public int get(K key)
- Specified by:
get
in interfaceObjectIntMap<K>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceObjectIntMap<K>
-
put
public int put(K key, int value)
- Specified by:
put
in interfaceObjectIntMap<K>
-
remove
public int remove(K key)
- Specified by:
remove
in interfaceObjectIntMap<K>
-
size
public int size()
- Specified by:
size
in interfaceObjectIntMap<K>
-
adjustOrPutValue
public int adjustOrPutValue(K key, int adjust_amount, int put_amount)
- Specified by:
adjustOrPutValue
in interfaceObjectIntMap<K>
-
adjustValue
public boolean adjustValue(K key, int amount)
- Specified by:
adjustValue
in interfaceObjectIntMap<K>
-
copy
public ObjectIntMap<K> copy(K... keysToRemove)
- Specified by:
copy
in interfaceObjectIntMap<K>
-
-