flexjson.transformer
Class TypeTransformerMap

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.concurrent.ConcurrentHashMap<Class,Transformer>
          extended by flexjson.transformer.TypeTransformerMap
All Implemented Interfaces:
Serializable, ConcurrentMap<Class,Transformer>, Map<Class,Transformer>

public class TypeTransformerMap
extends ConcurrentHashMap<Class,Transformer>

This class is used to lookup type transformers from specific to generic implementation. For example if an ArrayList transformer is provided

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
protected  boolean locked
           
 
Constructor Summary
TypeTransformerMap()
           
TypeTransformerMap(TypeTransformerMap parentTransformerMap)
           
 
Method Summary
 Transformer getTransformer(Object key)
           
 Transformer putTransformer(Class aClass, Transformer transformer)
           
 
Methods inherited from class java.util.concurrent.ConcurrentHashMap
clear, contains, containsKey, containsValue, elements, entrySet, get, isEmpty, keys, keySet, put, putAll, putIfAbsent, remove, remove, replace, replace, size, values
 
Methods inherited from class java.util.AbstractMap
clone, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

locked

protected boolean locked
Constructor Detail

TypeTransformerMap

public TypeTransformerMap()

TypeTransformerMap

public TypeTransformerMap(TypeTransformerMap parentTransformerMap)
Method Detail

getTransformer

public Transformer getTransformer(Object key)

putTransformer

public Transformer putTransformer(Class aClass,
                                  Transformer transformer)


Copyright © 2014. All Rights Reserved.