org.powertac.common.msg
Enum LoginResponseCmd.StatusCode

java.lang.Object
  extended by java.lang.Enum<LoginResponseCmd.StatusCode>
      extended by org.powertac.common.msg.LoginResponseCmd.StatusCode
All Implemented Interfaces:
Serializable, Comparable<LoginResponseCmd.StatusCode>
Enclosing class:
LoginResponseCmd

public static enum LoginResponseCmd.StatusCode
extends Enum<LoginResponseCmd.StatusCode>


Enum Constant Summary
ERR_INVALID_APIKEY
           
ERR_USERNAME_NOT_FOUND
           
OK
           
OK_BUSY
           
 
Method Summary
static LoginResponseCmd.StatusCode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static LoginResponseCmd.StatusCode[] 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

OK

public static final LoginResponseCmd.StatusCode OK

OK_BUSY

public static final LoginResponseCmd.StatusCode OK_BUSY

ERR_USERNAME_NOT_FOUND

public static final LoginResponseCmd.StatusCode ERR_USERNAME_NOT_FOUND

ERR_INVALID_APIKEY

public static final LoginResponseCmd.StatusCode ERR_INVALID_APIKEY
Method Detail

values

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

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

valueOf

public static LoginResponseCmd.StatusCode 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.