Package nz.org.riskscape.engine.types
Class TypeRegistry
java.lang.Object
nz.org.riskscape.engine.IdentifiedCollection.Base<TypeInformation>
nz.org.riskscape.engine.types.TypeRegistry
- All Implemented Interfaces:
IdentifiedCollection<TypeInformation>
-
Nested Class Summary
Nested classes/interfaces inherited from class nz.org.riskscape.engine.IdentifiedCollection.Base
IdentifiedCollection.Base.Handle
Nested classes/interfaces inherited from interface nz.org.riskscape.engine.IdentifiedCollection
IdentifiedCollection.Base<T extends Identified>
-
Field Summary
Fields inherited from class nz.org.riskscape.engine.IdentifiedCollection.Base
results
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic TypeRegistry
addDefaults
(TypeRegistry registry) static TypeRegistry
addDefaultVarianceRules
(TypeRegistry registry) void
void
addVarianceRule
(VarianceRule rule) findTypeInformation
(Class<? extends Type> someTypeClass) Search for aTypeInformation
object that reports the given class as its type class \ (viaTypeInformation.getTypeClass()
findTypeInformation
(Type someType) Search for aTypeInformation
object that reports the given type as its type class \ (viaTypeInformation.getTypeClass()
static TypeRegistry
Methods inherited from class nz.org.riskscape.engine.IdentifiedCollection.Base
add, add, add, addAll, addAll, clear, containsKey, determineCollectionClass, get, getAll, getAllProblems, getCollectionClass, getOr, getReferences, getResult, getSimilarIds, isEmpty, remove, removeAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface nz.org.riskscape.engine.IdentifiedCollection
get
-
Constructor Details
-
TypeRegistry
public TypeRegistry()
-
-
Method Details
-
withDefaults
-
addDefaults
-
addDefaultVarianceRules
-
addEquivalenceRule
-
addVarianceRule
-
findTypeInformation
Search for a
TypeInformation
object that reports the given type as its type class \ (viaTypeInformation.getTypeClass()
-
findTypeInformation
Search for a
TypeInformation
object that reports the given class as its type class \ (viaTypeInformation.getTypeClass()
-
getEquivalenceRules
-
getVarianceRules
-