de.ukn.hci.squidy.manager.commander.command.utility
Enum Switch

java.lang.Object
  extended by java.lang.Enum<Switch>
      extended by 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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ON

public static final Switch ON

OFF

public static final Switch OFF
Method Detail

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.