Enum Class StorageMethod

java.lang.Object
java.lang.Enum<StorageMethod>
xyz.srnyx.annoyingapi.storage.StorageMethod
All Implemented Interfaces:
Serializable, Comparable<StorageMethod>, Constable

public enum StorageMethod extends Enum<StorageMethod>
Available storage methods for the plugin
  • Enum Constant Details

  • Field Details

  • Method Details

    • values

      public static StorageMethod[] 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 StorageMethod 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
    • isSQL

      public boolean isSQL()
      Whether the method is SQL (just checks if sqlInfo is not null)
      Returns:
      true if the method is SQL, false otherwise
    • isSQLRemote

      public boolean isSQLRemote()
      Whether the method is SQL and remote (just checks if StorageMethod.SQLInfo.defaultPort() is not null)
      Returns:
      true if the method is SQL and remote, false otherwise