public enum LoginResult extends Enum<LoginResult> implements Serializable
Enum Constant and Description |
---|
Autheticated |
CantAuthenticate |
NoPermission |
PasswordExpired |
Modifier and Type | Method and Description |
---|---|
static LoginResult |
forValue(int value) |
int |
getValue() |
static LoginResult |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LoginResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LoginResult Autheticated
public static final LoginResult CantAuthenticate
public static final LoginResult NoPermission
public static final LoginResult PasswordExpired
public static LoginResult[] values()
for (LoginResult c : LoginResult.values()) System.out.println(c);
public static LoginResult valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic int getValue()
public static LoginResult forValue(int value)
Copyright © 2012. All Rights Reserved.