org.javasimon
Enum SimonState

java.lang.Object
  extended by java.lang.Enum<SimonState>
      extended by org.javasimon.SimonState
All Implemented Interfaces:
Serializable, Comparable<SimonState>

public enum SimonState
extends Enum<SimonState>

Status of monitor. While effective state can be either enabled or disabled, inner state of monitor accepts one addtional state - INHERIT, which means that effective state will be inherited recursively from the parent.

Author:
Richard "Virgo" Richter

Enum Constant Summary
DISABLED
          Disabled.
ENABLED
          Enabled.
INHERIT
          Effective state (enabled/disabled) is going to be derived from the parent.
 
Method Summary
static SimonState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SimonState[] 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

ENABLED

public static final SimonState ENABLED
Enabled.


DISABLED

public static final SimonState DISABLED
Disabled.


INHERIT

public static final SimonState INHERIT
Effective state (enabled/disabled) is going to be derived from the parent.

Method Detail

values

public static SimonState[] 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 (SimonState c : SimonState.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SimonState 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


Copyright © 2013. All Rights Reserved.