public class Index<K,V> extends AbstractMap<K,V>
| Modifier and Type | Class and Description |
|---|---|
static interface |
Index.ListSet |
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Index(K[] keys) |
Index(List<K> keys) |
Index(Map<K,V> map) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(Object key) |
Set<Map.Entry<K,V>> |
entrySet() |
V |
get(int index) |
V |
get(Object key) |
K |
getKey(int index) |
int |
indexOf(K key) |
Iterator<V> |
iterator() |
ListIterator<V> |
listIterator() |
ListIterator<V> |
listIterator(int index) |
V |
put(K key,
V value) |
V |
set(int index,
V value) |
Object[] |
toArray() |
Object[] |
toArray(Object[] values) |
List<V> |
values() |
public Index(K[] keys)
public K getKey(int index)
public V get(int index)
public boolean containsKey(Object key)
containsKey in interface Map<K,V>containsKey in class AbstractMap<K,V>public int indexOf(K key)
public ListIterator<V> listIterator()
public ListIterator<V> listIterator(int index)
public Object[] toArray()
Copyright © 1999–2014 The Apache Software Foundation. All rights reserved.