public class ArrayMap<T,V> extends AbstractMap<T,V> implements Cloneable
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
ArrayMap(Collection<T> init) |
ArrayMap(T... init) |
| Modifier and Type | Method and Description |
|---|---|
int |
capacity() |
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<T,V>> |
entrySet() |
V |
get(int index) |
V |
get(Object key) |
int |
getIndexOf(T key) |
boolean |
isEmpty() |
V |
put(int index,
V value) |
V |
put(T key,
V value) |
V |
remove(int index) |
V |
remove(Object key) |
int |
size() |
String |
toString() |
public ArrayMap(Collection<T> init)
public ArrayMap(T... init)
public int getIndexOf(T key)
public int size()
public boolean isEmpty()
public boolean containsKey(Object key)
containsKey in interface Map<T,V>containsKey in class AbstractMap<T,V>public boolean containsValue(Object value)
containsValue in interface Map<T,V>containsValue in class AbstractMap<T,V>public V get(int index)
public int capacity()
public V remove(int index)
public void clear()
public String toString()
toString in class AbstractMap<T,V>Copyright © 2014. All rights reserved.