de.tu_berlin.cs.tfs.muvitorkit.ui.utils
Class GenericUtils

java.lang.Object
  extended by de.tu_berlin.cs.tfs.muvitorkit.ui.utils.GenericUtils

public final class GenericUtils
extends Object

Rating red

Method Summary
static
<K,V> List<K>
deleteValueFromMap(Map<K,V> map, V value, boolean once)
           
static
<T> T
getRandom(List<T> list)
           
static
<V,K> K
inverseLookup(HashMap<K,V> map, V value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRandom

public static final <T> T getRandom(List<T> list)

inverseLookup

public static final <V,K> K inverseLookup(HashMap<K,V> map,
                                          V value)

deleteValueFromMap

public static final <K,V> List<K> deleteValueFromMap(Map<K,V> map,
                                                     V value,
                                                     boolean once)