Package zombie.core.Collections
Class ZomboidHashMap
java.lang.Object
zombie.core.Collections.ZomboidAbstractMap
zombie.core.Collections.ZomboidHashMap
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.util.Map
public class ZomboidHashMap extends ZomboidAbstractMap implements java.util.Map, java.lang.Cloneable, java.io.Serializable
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class zombie.core.Collections.ZomboidAbstractMap
ZomboidAbstractMap.SimpleEntry, ZomboidAbstractMap.SimpleImmutableEntry
-
Constructor Summary
Constructors Constructor Description ZomboidHashMap()
ZomboidHashMap(int initialCapacity)
ZomboidHashMap(int initialCapacity, float loadFactor)
ZomboidHashMap(java.util.Map m)
-
Method Summary
Modifier and Type Method Description void
clear()
java.lang.Object
clone()
boolean
containsKey(java.lang.Object key)
boolean
containsValue(java.lang.Object value)
java.util.Set
entrySet()
java.lang.Object
get(java.lang.Object key)
boolean
isEmpty()
java.util.Set
keySet()
java.lang.Object
put(java.lang.Object key, java.lang.Object value)
void
putAll(java.util.Map m)
java.lang.Object
remove(java.lang.Object key)
int
size()
java.util.Collection
values()
Methods inherited from class zombie.core.Collections.ZomboidAbstractMap
equals, hashCode, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
ZomboidHashMap
public ZomboidHashMap(int initialCapacity, float loadFactor) -
ZomboidHashMap
public ZomboidHashMap(int initialCapacity) -
ZomboidHashMap
public ZomboidHashMap() -
ZomboidHashMap
public ZomboidHashMap(java.util.Map m)
-
-
Method Details
-
size
public int size()- Specified by:
size
in interfacejava.util.Map
- Overrides:
size
in classZomboidAbstractMap
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfacejava.util.Map
- Overrides:
isEmpty
in classZomboidAbstractMap
-
get
public java.lang.Object get(java.lang.Object key)- Specified by:
get
in interfacejava.util.Map
- Overrides:
get
in classZomboidAbstractMap
-
containsKey
public boolean containsKey(java.lang.Object key)- Specified by:
containsKey
in interfacejava.util.Map
- Overrides:
containsKey
in classZomboidAbstractMap
-
put
public java.lang.Object put(java.lang.Object key, java.lang.Object value)- Specified by:
put
in interfacejava.util.Map
- Overrides:
put
in classZomboidAbstractMap
-
putAll
public void putAll(java.util.Map m)- Specified by:
putAll
in interfacejava.util.Map
- Overrides:
putAll
in classZomboidAbstractMap
-
remove
public java.lang.Object remove(java.lang.Object key)- Specified by:
remove
in interfacejava.util.Map
- Overrides:
remove
in classZomboidAbstractMap
-
clear
public void clear()- Specified by:
clear
in interfacejava.util.Map
- Overrides:
clear
in classZomboidAbstractMap
-
containsValue
public boolean containsValue(java.lang.Object value)- Specified by:
containsValue
in interfacejava.util.Map
- Overrides:
containsValue
in classZomboidAbstractMap
-
clone
public java.lang.Object clone()- Overrides:
clone
in classZomboidAbstractMap
-
keySet
public java.util.Set keySet()- Specified by:
keySet
in interfacejava.util.Map
- Overrides:
keySet
in classZomboidAbstractMap
-
values
public java.util.Collection values()- Specified by:
values
in interfacejava.util.Map
- Overrides:
values
in classZomboidAbstractMap
-
entrySet
public java.util.Set entrySet()- Specified by:
entrySet
in interfacejava.util.Map
- Specified by:
entrySet
in classZomboidAbstractMap
-