org.eclipse.osgi.internal.module
Class MappedList<K,V>

java.lang.Object
  extended by org.eclipse.osgi.internal.module.MappedList<K,V>
Direct Known Subclasses:
VersionHashMap

public class MappedList<K,V>
extends Object


Field Summary
protected  List<V> empty
           
protected  HashMap<K,List<V>> internal
           
 
Constructor Summary
MappedList()
           
 
Method Summary
 void clear()
           
 List<V> get(K key)
           
 List<V> getAllValues()
           
 int getSize()
           
protected  int insertionIndex(List<V> existing, V value)
           
 void put(K key, V value)
           
 List<V> remove(K key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

internal

protected final HashMap<K,List<V>> internal

empty

protected final List<V> empty
Constructor Detail

MappedList

public MappedList()
Method Detail

put

public void put(K key,
                V value)

insertionIndex

protected int insertionIndex(List<V> existing,
                             V value)

remove

public List<V> remove(K key)

get

public List<V> get(K key)

getSize

public int getSize()

getAllValues

public List<V> getAllValues()

clear

public void clear()


Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.