public class Index<K,V>
extends java.util.AbstractMap<K,V>
Modifier and Type | Class and Description |
---|---|
static interface |
Index.ListSet |
Constructor and Description |
---|
Index(K[] keys) |
Index(java.util.List<K> keys) |
Index(java.util.Map<K,V> map) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(java.lang.Object key) |
java.util.Set<java.util.Map.Entry<K,V>> |
entrySet() |
V |
get(int index) |
V |
get(java.lang.Object key) |
K |
getKey(int index) |
int |
indexOf(K key) |
java.util.Iterator<V> |
iterator() |
java.util.ListIterator<V> |
listIterator() |
java.util.ListIterator<V> |
listIterator(int index) |
V |
put(K key,
V value) |
V |
set(int index,
V value) |
java.lang.Object[] |
toArray() |
java.lang.Object[] |
toArray(java.lang.Object[] values) |
java.util.List<V> |
values() |
clear, clone, containsValue, equals, hashCode, isEmpty, keySet, putAll, remove, size, toString
public java.util.List<V> values()
public K getKey(int index)
public V get(int index)
public boolean containsKey(java.lang.Object key)
public int indexOf(K key)
public V get(java.lang.Object key)
public java.util.Iterator<V> iterator()
public java.util.ListIterator<V> listIterator()
public java.util.ListIterator<V> listIterator(int index)
public java.lang.Object[] toArray()
public java.lang.Object[] toArray(java.lang.Object[] values)