public static enum StorageConfig.SaveOn extends java.lang.Enum<StorageConfig.SaveOn>
storage.yml's cache.save-on option| Enum Constant and Description |
|---|
DISABLE
Saves the cache on plugin disable
|
INTERVAL
Saves the cache on an interval
|
RELOAD
Saves the cache on plugin reload
|
| Modifier and Type | Method and Description |
|---|---|
static @NotNull java.util.Optional<StorageConfig.SaveOn> |
fromString(@Nullable java.lang.String string)
Converts the specified string to a
StorageConfig.SaveOn value |
static StorageConfig.SaveOn |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StorageConfig.SaveOn[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StorageConfig.SaveOn RELOAD
AnnoyingPlugin.reloadPlugin()public static final StorageConfig.SaveOn DISABLE
AnnoyingPlugin.disablePlugin()public static final StorageConfig.SaveOn INTERVAL
StorageConfig.Cache.intervalpublic static StorageConfig.SaveOn[] values()
for (StorageConfig.SaveOn c : StorageConfig.SaveOn.values()) System.out.println(c);
public static StorageConfig.SaveOn valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null@NotNull public static @NotNull java.util.Optional<StorageConfig.SaveOn> fromString(@Nullable @Nullable java.lang.String string)
StorageConfig.SaveOn valuestring - the string to convert