org.apache.openejb.util
Class Index<K,V>

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by org.apache.openejb.util.Index<K,V>
All Implemented Interfaces:
Map<K,V>

public class Index<K,V>
extends AbstractMap<K,V>

Version:
$Revision: 495820 $ $Date: 2007-01-13 03:25:48 +0100 (Sa, 13. Jan 2007) $

Nested Class Summary
static interface Index.ListSet
           
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
Index(K[] keys)
           
Index(List<K> keys)
           
Index(Map<K,V> map)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.util.AbstractMap
clear, clone, containsValue, equals, hashCode, isEmpty, keySet, putAll, remove, size, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Index

public Index(Map<K,V> map)

Index

public Index(List<K> keys)

Index

public Index(K[] keys)
Method Detail

values

public List<V> values()
Specified by:
values in interface Map<K,V>
Overrides:
values in class AbstractMap<K,V>

entrySet

public Set<Map.Entry<K,V>> entrySet()
Specified by:
entrySet in interface Map<K,V>
Specified by:
entrySet in class AbstractMap<K,V>

getKey

public K getKey(int index)

get

public V get(int index)

set

public V set(int index,
             V value)

put

public V put(K key,
             V value)
Specified by:
put in interface Map<K,V>
Overrides:
put in class AbstractMap<K,V>

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Map<K,V>
Overrides:
containsKey in class AbstractMap<K,V>

indexOf

public int indexOf(K key)

get

public V get(Object key)
Specified by:
get in interface Map<K,V>
Overrides:
get in class AbstractMap<K,V>

iterator

public Iterator<V> iterator()

listIterator

public ListIterator<V> listIterator()

listIterator

public ListIterator<V> listIterator(int index)

toArray

public Object[] toArray()

toArray

public Object[] toArray(Object[] values)


Copyright © 1999-2013 The Apache OpenEJB development community. All Rights Reserved.