public class AutoValidator<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
extends java.lang.Object
Constructor and Description |
---|
AutoValidator(@NotNull DelegatingMapValidator<G,A,R> validators,
boolean autoDefault,
@NotNull DelayedMapModelListenerManager<G,A,R> delayedMapModelListenerManager)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
isEnabled()
Returns whether the auto-validator is enabled.
|
static void |
setEnabled(boolean enabled)
Set whether the auto-validator is enabled.
|
public AutoValidator(@NotNull @NotNull DelegatingMapValidator<G,A,R> validators, boolean autoDefault, @NotNull @NotNull DelayedMapModelListenerManager<G,A,R> delayedMapModelListenerManager)
validators
- the map validatorsautoDefault
- whether the auto-validator is enabled by defaultdelayedMapModelListenerManager
- the delayed map model listener
manager to usepublic static boolean isEnabled()
public static void setEnabled(boolean enabled)
enabled
- whether the auto-validator is enabled