nl.gridshore.samples.training.domain
Enum SessionStatus

java.lang.Object
  extended by java.lang.Enum<SessionStatus>
      extended by nl.gridshore.samples.training.domain.SessionStatus
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SessionStatus>

public enum SessionStatus
extends java.lang.Enum<SessionStatus>

Created by IntelliJ IDEA. User: jettro Date: Jan 18, 2008 Time: 11:59:57 PM Enumertion type for the status of a session


Enum Constant Summary
CANCELLED
           
FINISHED
           
SCHEDULED
           
 
Method Summary
 java.lang.String toString()
           
static SessionStatus valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SessionStatus[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SCHEDULED

public static final SessionStatus SCHEDULED

CANCELLED

public static final SessionStatus CANCELLED

FINISHED

public static final SessionStatus FINISHED
Method Detail

values

public static final SessionStatus[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(SessionStatus c : SessionStatus.values())
        System.out.println(c);

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

valueOf

public static SessionStatus 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 name

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<SessionStatus>


Copyright © 2008. All Rights Reserved.