java.lang.Object
de.grogra.xl.util.LongToIntHashMap
- All Implemented Interfaces:
Iterable<LongToIntHashMap.Entry>
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionLongToIntHashMap
(int capacity) LongToIntHashMap
(int capacity, float loadFactor) -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(long key, int value) void
clear()
boolean
containsKey
(long key) int
get
(long key) int
get
(long key, int defaultValue) getEntry
(long key) boolean
isEmpty()
iterator()
int
put
(long key, int value) int
remove
(long key) int
remove
(long key, int value) void
remove
(LongToIntHashMap.Entry entry) void
removeAll
(long key) int
size()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
LongToIntHashMap
public LongToIntHashMap(int capacity, float loadFactor) -
LongToIntHashMap
public LongToIntHashMap(int capacity) -
LongToIntHashMap
public LongToIntHashMap()
-
-
Method Details
-
isEmpty
public boolean isEmpty() -
size
public int size() -
clear
public void clear() -
add
public void add(long key, int value) -
put
public int put(long key, int value) -
remove
-
remove
public int remove(long key) -
remove
public int remove(long key, int value) -
removeAll
public void removeAll(long key) -
getEntry
-
get
public int get(long key) -
get
public int get(long key, int defaultValue) -
containsKey
public boolean containsKey(long key) -
iterator
- Specified by:
iterator
in interfaceIterable<LongToIntHashMap.Entry>
-