Package com.e1c.g5.v8.dt.snapshot
Enum SnapshotTask
- java.lang.Object
-
- java.lang.Enum<SnapshotTask>
-
- com.e1c.g5.v8.dt.snapshot.SnapshotTask
-
- All Implemented Interfaces:
Serializable
,Comparable<SnapshotTask>
public enum SnapshotTask extends Enum<SnapshotTask>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Set<SnapshotTask>
both()
Gets a set, containing bothSnapshotTask
s.static Set<SnapshotTask>
none()
Gets an empty set ofSnapshotTask
s.Set<SnapshotTask>
toSet()
Converts thisSnapshotTask
to a set of one element.static SnapshotTask
valueOf(String name)
Returns the enum constant of this type with the specified name.static SnapshotTask[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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 nameNullPointerException
- if the argument is null
-
toSet
public Set<SnapshotTask> toSet()
Converts thisSnapshotTask
to a set of one element.- Returns:
- the set containing this object, never
null
-
both
public static Set<SnapshotTask> both()
Gets a set, containing bothSnapshotTask
s.- Returns:
- the set, containing both tasks, never
null
-
none
public static Set<SnapshotTask> none()
Gets an empty set ofSnapshotTask
s.- Returns:
- the empty set, never
null
-
-