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


  • public class AutoValidator<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>>
    extends java.lang.Object
    Implements the auto-validator for map validation. It tracks changes to maps, then asynchronously re-runs the map validator.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isEnabled()
      Returns whether the auto-validator is enabled.
      static void setEnabled​(boolean enabled)
      Set whether the auto-validator is enabled.
      • Methods inherited from class java.lang.Object

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

      • AutoValidator

        public AutoValidator​(@NotNull
                             @NotNull DelegatingMapValidator<G,​A,​R> validators,
                             boolean autoDefault,
                             @NotNull
                             @NotNull DelayedMapModelListenerManager<G,​A,​R> delayedMapModelListenerManager)
        Creates a new instance.
        Parameters:
        validators - the map validators
        autoDefault - whether the auto-validator is enabled by default
        delayedMapModelListenerManager - the delayed map model listener manager to use
    • Method Detail

      • isEnabled

        public static boolean isEnabled()
        Returns whether the auto-validator is enabled.
        Returns:
        whether the auto-validator is enabled
      • setEnabled

        public static void setEnabled​(boolean enabled)
        Set whether the auto-validator is enabled.
        Parameters:
        enabled - whether the auto-validator is enabled