Package org.stringtemplate.v4.misc
Class TypeRegistry<V>
java.lang.Object
org.stringtemplate.v4.misc.TypeRegistry<V>
-
Nested Class Summary
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
boolean
containsKey
(Object key) boolean
containsValue
(Object value) entrySet()
protected void
handleAlteration
(Class<?> clazz) boolean
isEmpty()
keySet()
void
int
size()
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
-
Field Details
-
backingStore
-
cache
-
-
Constructor Details
-
TypeRegistry
public TypeRegistry()
-
-
Method Details
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKey
in interfaceMap<Class<?>,
V>
-
containsValue
- Specified by:
containsValue
in interfaceMap<Class<?>,
V>
-
get
- 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.
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-
handleAlteration
-