Enum Class DataVersion

java.lang.Object
java.lang.Enum<DataVersion>
org.kingdoms.data.history.DataVersion
All Implemented Interfaces:
Serializable, Comparable<DataVersion>, Constable

public enum DataVersion extends Enum<DataVersion>
  • Enum Constant Details

    • VERSION_0

      public static final DataVersion VERSION_0
      Up until v1.17.0
    • VERSION_1

      public static final DataVersion VERSION_1
      v1.17.0 Update NamespacedMaps and NamespacedFlags
  • Field Details

  • Method Details

    • values

      public static DataVersion[] 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 DataVersion 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
    • setCurrentVersion

      public static void setCurrentVersion(DataVersion version, boolean raw)
    • getCurrentVersion

      public static DataVersion getCurrentVersion()
    • isLatest

      public boolean isLatest()
    • next

      public DataVersion next()