Enum SnapshotTask

    • Enum Constant Detail

      • CREATE

        public static final SnapshotTask CREATE
        Create snapshot.
      • RESTORE

        public static final SnapshotTask RESTORE
        Restore snapshot.
    • Method Detail

      • values

        public static SnapshotTask[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (SnapshotTask c : SnapshotTask.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SnapshotTask valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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