Enum Class SnapshotTask

java.lang.Object
java.lang.Enum<SnapshotTask>
com.e1c.g5.v8.dt.snapshot.SnapshotTask
All Implemented Interfaces:
Serializable, Comparable<SnapshotTask>, Constable

public enum SnapshotTask extends Enum<SnapshotTask>
Snapshot task, either CREATE or RESTORE.
  • Enum Constant Details

    • CREATE

      public static final SnapshotTask CREATE
      Create snapshot.
    • RESTORE

      public static final SnapshotTask RESTORE
      Restore snapshot.
  • Method Details

    • values

      public static SnapshotTask[] 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 SnapshotTask 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
    • toSet

      public Set<SnapshotTask> toSet()
      Converts this SnapshotTask to a set of one element.
      Returns:
      the set containing this object, never null
    • both

      public static Set<SnapshotTask> both()
      Gets a set, containing both SnapshotTasks.
      Returns:
      the set, containing both tasks, never null
    • none

      public static Set<SnapshotTask> none()
      Gets an empty set of SnapshotTasks.
      Returns:
      the empty set, never null