Package com.mchange.util.impl
Class LongObjectHash
- java.lang.Object
-
- com.mchange.util.impl.LongObjectHash
-
- All Implemented Interfaces:
LongObjectMap
public class LongObjectHash extends java.lang.Object implements LongObjectMap
-
-
Constructor Summary
Constructors Constructor Description LongObjectHash()
LongObjectHash(int init_capacity, float load_factor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsLong(long num)
java.lang.Object
get(long num)
long
getSize()
void
put(long num, java.lang.Object obj)
boolean
putNoReplace(long num, java.lang.Object obj)
protected void
rehash()
java.lang.Object
remove(long num)
-
-
-
Method Detail
-
get
public java.lang.Object get(long num)
- Specified by:
get
in interfaceLongObjectMap
-
put
public void put(long num, java.lang.Object obj)
- Specified by:
put
in interfaceLongObjectMap
-
putNoReplace
public boolean putNoReplace(long num, java.lang.Object obj)
- Specified by:
putNoReplace
in interfaceLongObjectMap
-
getSize
public long getSize()
- Specified by:
getSize
in interfaceLongObjectMap
-
containsLong
public boolean containsLong(long num)
- Specified by:
containsLong
in interfaceLongObjectMap
-
remove
public java.lang.Object remove(long num)
- Specified by:
remove
in interfaceLongObjectMap
-
rehash
protected void rehash()
-
-