Enum Class StorageType

java.lang.Object
java.lang.Enum<StorageType>
dev.satyrn.papermc.api.storage.v1.StorageType
All Implemented Interfaces:
Serializable, Comparable<StorageType>, Constable

public enum StorageType extends Enum<StorageType>
Indexes multiple types of storage.
Since:
1.6.0
Author:
Isabel Maskrey
  • Enum Constant Details

    • FLAT_FILE

      public static final StorageType FLAT_FILE
      Flat-file storage, such as YAML or text files. Generally uses YAML configuration file structure.
      Since:
      1.6.0
    • MYSQL

      public static final StorageType MYSQL
      Storage which is handled via a MySQL-like database.
      Since:
      1.6.0
  • Method Details

    • values

      public static StorageType[] 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 StorageType 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