Class DefaultValidatorPreferences

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean loadEnabled​(@NotNull java.lang.String key, boolean defaultEnabled)
      Loads the stored "enabled" attribute.
      void saveEnabled​(@NotNull java.lang.String key, boolean enabled)
      Saves the "enabled" attribute.
      • Methods inherited from class java.lang.Object

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

      • DefaultValidatorPreferences

        public DefaultValidatorPreferences()
    • Method Detail

      • loadEnabled

        public boolean loadEnabled​(@NotNull
                                   @NotNull java.lang.String key,
                                   boolean defaultEnabled)
        Description copied from interface: ValidatorPreferences
        Loads the stored "enabled" attribute.
        Specified by:
        loadEnabled in interface ValidatorPreferences
        Parameters:
        key - the validator's key
        defaultEnabled - whether the validator is enabled by default
        Returns:
        whether the validator is enabled
      • saveEnabled

        public void saveEnabled​(@NotNull
                                @NotNull java.lang.String key,
                                boolean enabled)
        Description copied from interface: ValidatorPreferences
        Saves the "enabled" attribute.
        Specified by:
        saveEnabled in interface ValidatorPreferences
        Parameters:
        key - the validator's key
        enabled - the enabled state