Package org.stringtemplate.v4.misc
Class TypeRegistry<V>
- java.lang.Object
-
- org.stringtemplate.v4.misc.TypeRegistry<V>
-
-
Constructor Summary
Constructors Constructor Description TypeRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
containsKey(Object key)
boolean
containsValue(Object value)
Set<Map.Entry<Class<?>,V>>
entrySet()
V
get(Object key)
protected void
handleAlteration(Class<?> clazz)
boolean
isEmpty()
Set<Class<?>>
keySet()
V
put(Class<?> key, V value)
void
putAll(Map<? extends Class<?>,? extends V> m)
V
remove(Object key)
int
size()
Collection<V>
values()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Method Detail
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interfaceMap<Class<?>,V>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interfaceMap<Class<?>,V>
-
get
public V get(Object key)
- Specified by:
get
in interfaceMap<Class<?>,V>
- Throws:
AmbiguousMatchException
- if the registry contains more than value mapped to a maximally-specific type from whichkey
is derived.
-
handleAlteration
protected void handleAlteration(Class<?> clazz)
-
-