Enum Class OxConfig.EnsureMode

java.lang.Object
java.lang.Enum<OxConfig.EnsureMode>
me.nabdev.oxconfig.OxConfig.EnsureMode
All Implemented Interfaces:
Serializable, Comparable<OxConfig.EnsureMode>, Constable
Enclosing class:
OxConfig

public static enum OxConfig.EnsureMode extends Enum<OxConfig.EnsureMode>
Different modes for ensuring keys
  • Enum Constant Details

    • Always

      public static final OxConfig.EnsureMode Always
      Default, Always ensures all keys exist, but is slower
    • Startup

      public static final OxConfig.EnsureMode Startup
      Ensure keys only on startup. May be a little faster than AlwaysEnsure, and should be pretty safe. This is default.
    • Never

      public static final OxConfig.EnsureMode Never
      (Not Recommended) Never ensures keys exist, do not use on the first run after adding a new parameter/class.
  • Method Details

    • values

      public static OxConfig.EnsureMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static OxConfig.EnsureMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null