Package org.libvirt
Enum SuspendTarget
- java.lang.Object
-
- java.lang.Enum<SuspendTarget>
-
- org.libvirt.SuspendTarget
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SuspendTarget>
public enum SuspendTarget extends java.lang.Enum<SuspendTarget>
Power management suspension target levels
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SuspendTarget
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SuspendTarget[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MEMORY
public static final SuspendTarget MEMORY
Suspend-to-RAM
-
DISK
public static final SuspendTarget DISK
Suspend-to-Disk
-
HYBRID
public static final SuspendTarget HYBRID
Hybrid-Suspend
-
-
Method Detail
-
values
public static SuspendTarget[] 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 (SuspendTarget c : SuspendTarget.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SuspendTarget valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-