de.matthiasmann.twl.utils
Class TypeMapping<V>

java.lang.Object
  extended by de.matthiasmann.twl.utils.TypeMapping<V>
Type Parameters:
V - the type of the values in this mapping

public class TypeMapping<V>
extends java.lang.Object

Maps a data type to a value. Searches for interface and subclass mappings.


Constructor Summary
TypeMapping()
           
 
Method Summary
 V get(java.lang.Class<?> clazz)
           
 java.util.Map<java.lang.Class<?>,V> getEntries()
           
 java.util.Set<V> getUniqueValues()
           
 void put(java.lang.Class<?> clazz, V value)
           
 boolean remove(java.lang.Class<?> clazz)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeMapping

public TypeMapping()
Method Detail

put

public void put(java.lang.Class<?> clazz,
                V value)

get

public V get(java.lang.Class<?> clazz)

remove

public boolean remove(java.lang.Class<?> clazz)

getUniqueValues

public java.util.Set<V> getUniqueValues()

getEntries

public java.util.Map<java.lang.Class<?>,V> getEntries()