public class DefinitionUtils
extends java.lang.Object
| Constructor and Description |
|---|
DefinitionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <D extends Definition> |
checkDefinition(DefinitionRegistry<D> registry,
D definition)
Precondition to ensure a definition being sent is known to the registry.
|
public static <D extends Definition> D checkDefinition(DefinitionRegistry<D> registry, D definition)
D - definition typeregistry - registry to checkdefinition - definition to checkjava.lang.IllegalArgumentException - if the definition is not registered