Class AssocArray<K,V>
java.lang.Object
zombie.entity.util.assoc.AssocArray<K,V>
- Direct Known Subclasses:
AssocEnumArray
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanvoidaddAll(AssocArray<K, V> other) voidclear()booleancontainsKey(K o) booleancontainsValue(V o) voidensureCapacity(int minCapacity) booleanvoidforEach(BiConsumer<? super K, ? super V> action) getKey(int frontIndex) getValue(int frontIndex) inthashCode()intindexOfKey(K o) intindexOfValue(V o) booleanisEmpty()intlastIndexOfKey(K o) intvoidputAll(AssocArray<K, V> other) removeIndex(int frontIndex) voidsetAll(AssocArray<K, V> other) intsize()void
-
Constructor Details
-
AssocArray
public AssocArray(int initialCapacity) -
AssocArray
public AssocArray()
-
-
Method Details
-
trimToSize
public void trimToSize() -
ensureCapacity
public void ensureCapacity(int minCapacity) -
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
-
containsValue
-
indexOfKey
-
indexOfValue
-
lastIndexOfKey
-
lastIndexOfValue
-
getKey
-
getValue
-
set
-
put
-
get
-
add
-
add
-
removeIndex
-
equals
-
hashCode
-
remove
-
clear
public void clear() -
putAll
-
addAll
-
setAll
-
forEach
-