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 java.lang.Object


Field Summary
protected  java.util.List<V> empty
           
protected  java.util.HashMap<K,java.util.List<V>> internal
           
 
Constructor Summary
MappedList()
           
 
Method Summary
 void clear()
           
 java.util.List<V> get(K key)
           
 java.util.List<V> getAllValues()
           
 int getSize()
           
protected  int insertionIndex(java.util.List<V> existing, V value)
           
 void put(K key, V value)
           
 java.util.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 java.util.HashMap<K,java.util.List<V>> internal

empty

protected final java.util.List<V> empty
Constructor Detail

MappedList

public MappedList()
Method Detail

put

public void put(K key,
                V value)

insertionIndex

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

remove

public java.util.List<V> remove(K key)

get

public java.util.List<V> get(K key)

getSize

public int getSize()

getAllValues

public java.util.List<V> getAllValues()

clear

public void clear()


Copyright © 2007-2012 FuseSource, Corp.. All Rights Reserved.