Enum Class StorageConfig.SaveOn

java.lang.Object
java.lang.Enum<StorageConfig.SaveOn>
xyz.srnyx.annoyingapi.storage.StorageConfig.SaveOn
All Implemented Interfaces:
Serializable, Comparable<StorageConfig.SaveOn>, Constable
Enclosing class:
StorageConfig

public static enum StorageConfig.SaveOn extends Enum<StorageConfig.SaveOn>
Valid values for storage.yml's cache.save-on option
  • Enum Constant Details

  • Method Details

    • values

      public static StorageConfig.SaveOn[] 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 StorageConfig.SaveOn 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
    • fromString

      @NotNull public static @NotNull Optional<StorageConfig.SaveOn> fromString(@Nullable @Nullable String string)
      Converts the specified string to a StorageConfig.SaveOn value
      Parameters:
      string - the string to convert
      Returns:
      the converted value, or empty if the string is invalid