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:
java.util.Map<K,V>

public class Index<K,V>
extends java.util.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
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Constructor Summary
Index(K[] keys)
           
Index(java.util.List<K> keys)
           
Index(java.util.Map<K,V> map)
           
 
Method Summary
 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()
           
 
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(java.util.Map<K,V> map)

Index

public Index(java.util.List<K> keys)

Index

public Index(K[] keys)
Method Detail

values

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

entrySet

public java.util.Set<java.util.Map.Entry<K,V>> entrySet()
Specified by:
entrySet in interface java.util.Map<K,V>
Specified by:
entrySet in class java.util.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 java.util.Map<K,V>
Overrides:
put in class java.util.AbstractMap<K,V>

containsKey

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

indexOf

public int indexOf(K key)

get

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

iterator

public java.util.Iterator<V> iterator()

listIterator

public java.util.ListIterator<V> listIterator()

listIterator

public java.util.ListIterator<V> listIterator(int index)

toArray

public java.lang.Object[] toArray()

toArray

public java.lang.Object[] toArray(java.lang.Object[] values)


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