public class Entry<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
extends java.lang.Object
GameObjectMatcher and a regular
expression which defined the allowed value of the "slaying" field.| Constructor and Description |
|---|
Entry(@NotNull GameObjectMatcher gameObjectMatcher,
@NotNull java.util.regex.Pattern regex)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
validate(G gameObject,
@NotNull ErrorCollector<G,A,R> errorCollector)
Validates one
GameObject instance. |
public Entry(@NotNull
@NotNull GameObjectMatcher gameObjectMatcher,
@NotNull
@NotNull java.util.regex.Pattern regex)
gameObjectMatcher - selects the game objects to checkregex - the allowed values of the "slaying" fieldpublic boolean validate(@NotNull
G gameObject,
@NotNull
@NotNull ErrorCollector<G,A,R> errorCollector)
GameObject instance.gameObject - the game object instanceerrorCollector - the error collector to use