de.ukn.hci.squidy.manager.commander.command.utility
Enum Switch
java.lang.Object
java.lang.Enum<Switch>
de.ukn.hci.squidy.manager.commander.command.utility.Switch
- All Implemented Interfaces:
- Serializable, Comparable<Switch>
public enum Switch
- extends Enum<Switch>
Switch.
Date: Sep 25, 2008
Time: 5:25:28 PM
- Since:
- 1.1.0
- Version:
- $Id: Switch.java 30 2009-09-18 22:23:35Z nitsche $
- Author:
- Roman Rädle Roman.Raedle@uni-konstanz.de, University
of Konstanz
|
Enum Constant Summary |
OFF
|
ON
|
|
Method Summary |
boolean |
getState()
|
static Switch |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Switch[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
ON
public static final Switch ON
OFF
public static final Switch OFF
values
public static Switch[] 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 (Switch c : Switch.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Switch 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
getState
public boolean getState()
- Returns:
Copyright © 2007-2010 Human-Computer-Interaction :: University of Konstanz. All Rights Reserved.