org.ijsberg.iglu.util.collection
Class ListMap<K,V>

java.lang.Object
  extended by org.ijsberg.iglu.util.collection.ListMap<K,V>

public class ListMap<K,V>
extends Object


Field Summary
protected  TreeMap<K,List<V>> internalMap
           
 
Constructor Summary
ListMap()
           
ListMap(int loadFactor)
           
 
Method Summary
protected  List<V> createOrRetrieveList(K key)
           
 Set<K> descendingKeySet()
           
 List<V> get(K key)
           
 List<V> getByIndex(int index)
           
 TreeMap<K,List<V>> getMap()
           
 List<V> getTop(int x)
           
 Set<K> keySet()
           
 List<V> put(K key, V value)
           
 void removeFirst(K key)
           
 int size()
           
 String toString()
           
 Collection<V> values()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

internalMap

protected TreeMap<K,List<V>> internalMap
Constructor Detail

ListMap

public ListMap()

ListMap

public ListMap(int loadFactor)
Method Detail

createOrRetrieveList

protected List<V> createOrRetrieveList(K key)

put

public List<V> put(K key,
                   V value)

getMap

public TreeMap<K,List<V>> getMap()

get

public List<V> get(K key)

getByIndex

public List<V> getByIndex(int index)

toString

public String toString()
Overrides:
toString in class Object

keySet

public Set<K> keySet()

descendingKeySet

public Set<K> descendingKeySet()

size

public int size()

values

public Collection<V> values()

getTop

public List<V> getTop(int x)

removeFirst

public void removeFirst(K key)


Copyright © 2012. All Rights Reserved.