Class Entry<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>>


  • public class Entry<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>>
    extends java.lang.Object
    An entry to match consisting of a GameObjectMatcher and a regular expression which defined the allowed value of the "slaying" field.
    • Constructor Summary

      Constructors 
      Constructor Description
      Entry​(@NotNull GameObjectMatcher gameObjectMatcher, @NotNull java.util.regex.Pattern regex)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean validate​(G gameObject, @NotNull ErrorCollector<G,​A,​R> errorCollector)
      Validates one GameObject instance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Entry

        public Entry​(@NotNull
                     @NotNull GameObjectMatcher gameObjectMatcher,
                     @NotNull
                     @NotNull java.util.regex.Pattern regex)
        Creates a new instance.
        Parameters:
        gameObjectMatcher - selects the game objects to check
        regex - the allowed values of the "slaying" field
    • Method Detail

      • validate

        public boolean validate​(@NotNull
                                G gameObject,
                                @NotNull
                                @NotNull ErrorCollector<G,​A,​R> errorCollector)
        Validates one GameObject instance.
        Parameters:
        gameObject - the game object instance
        errorCollector - the error collector to use
        Returns:
        whether the game object did match