java.lang.Object
de.grogra.xl.util.LongToIntHashMap
- All Implemented Interfaces:
Iterable<LongToIntHashMap.Entry>
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionLongToIntHashMap(int capacity) LongToIntHashMap(int capacity, float loadFactor) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(long key, int value) voidclear()booleancontainsKey(long key) intget(long key) intget(long key, int defaultValue) getEntry(long key) booleanisEmpty()iterator()intput(long key, int value) intremove(long key) intremove(long key, int value) voidremove(LongToIntHashMap.Entry entry) voidremoveAll(long key) intsize()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
iteratorin interfaceIterable<LongToIntHashMap.Entry>
-