cz.vity.freerapid.utilities.os
Enum OSCommand
java.lang.Object
java.lang.Enum<OSCommand>
cz.vity.freerapid.utilities.os.OSCommand
- All Implemented Interfaces:
- Serializable, Comparable<OSCommand>
public enum OSCommand
- extends Enum<OSCommand>
- Author:
- Ladislav Vitasek
Method Summary |
static OSCommand |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static OSCommand[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
CREATE_DESKTOP_SHORTCUT
public static final OSCommand CREATE_DESKTOP_SHORTCUT
CREATE_STARTMENU_SHORTCUT
public static final OSCommand CREATE_STARTMENU_SHORTCUT
CREATE_STARTUP_SHORTCUT
public static final OSCommand CREATE_STARTUP_SHORTCUT
CREATE_QUICKLAUNCH_SHORTCUT
public static final OSCommand CREATE_QUICKLAUNCH_SHORTCUT
HIBERNATE
public static final OSCommand HIBERNATE
SHUTDOWN
public static final OSCommand SHUTDOWN
REBOOT
public static final OSCommand REBOOT
STANDBY
public static final OSCommand STANDBY
RESTART_APPLICATION
public static final OSCommand RESTART_APPLICATION
shutDownCommands
public static EnumSet<OSCommand> shutDownCommands
shortCutCommands
public static EnumSet<OSCommand> shortCutCommands
values
public static OSCommand[] 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 (OSCommand c : OSCommand.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static OSCommand 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