java.lang.Object
java.lang.Enum<DataType>
io.github.vitalforge.persistlib.persistannotations.DataType
All Implemented Interfaces:
Serializable, Comparable<DataType>, Constable

public enum DataType extends Enum<DataType>
The type of data that is being persisted.
  • Enum Constant Details

    • FILE

      public static final DataType FILE
      Name of the file to persist the data to.
    • INSTANCE

      public static final DataType INSTANCE
      The instance who has been created and persisted.
    • SELF

      public static final DataType SELF
      The data who have been loaded as Map.
    • PATH

      public static final DataType PATH
      Absolute path to the file to persist the data to.
  • Method Details

    • values

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