de.grogra.xl.util
Class LongToIntHashMap
java.lang.Object
de.grogra.xl.util.LongToIntHashMap
- All Implemented Interfaces:
- java.lang.Iterable<LongToIntHashMap.Entry>
public class LongToIntHashMap
- extends java.lang.Object
- implements java.lang.Iterable<LongToIntHashMap.Entry>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LongToIntHashMap
public LongToIntHashMap()
LongToIntHashMap
public LongToIntHashMap(int capacity)
LongToIntHashMap
public LongToIntHashMap(int capacity,
float loadFactor)
add
public void add(long key,
int value)
clear
public void clear()
containsKey
public boolean containsKey(long key)
get
public int get(long key)
get
public int get(long key,
int defaultValue)
getEntry
public LongToIntHashMap.Entry getEntry(long key)
isEmpty
public boolean isEmpty()
iterator
public java.util.Iterator<LongToIntHashMap.Entry> iterator()
- Specified by:
iterator
in interface java.lang.Iterable<LongToIntHashMap.Entry>
put
public int put(long key,
int value)
remove
public int remove(long key)
remove
public int remove(long key,
int value)
remove
public void remove(LongToIntHashMap.Entry entry)
removeAll
public void removeAll(long key)
size
public int size()