Enum Class PersistDataFlags

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

public enum PersistDataFlags extends Enum<PersistDataFlags>
Flags that can be used to control how data is persisted.
  • Enum Constant Details

    • FROM_FILE

      public static final PersistDataFlags FROM_FILE
      The data should be persisted to a file.
  • Method Details

    • values

      public static PersistDataFlags[] 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 PersistDataFlags 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
    • getDefaultValue

      public boolean getDefaultValue()
      Retrieves the default value of the flag.
      Returns:
      The default value of the flag.