org.jdiameter.common.api.app.gx
Enum ClientGxSessionState

java.lang.Object
  extended by java.lang.Enum<ClientGxSessionState>
      extended by org.jdiameter.common.api.app.gx.ClientGxSessionState
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ClientGxSessionState>, IAppSessionState<ClientGxSessionState>

public enum ClientGxSessionState
extends java.lang.Enum<ClientGxSessionState>
implements IAppSessionState<ClientGxSessionState>

Author:
Bartosz Baranowski , Alexandre Mendonca , Erick Svenson

Enum Constant Summary
IDLE
           
OPEN
           
PENDING_BUFFERED
           
PENDING_EVENT
           
PENDING_INITIAL
           
PENDING_TERMINATION
           
PENDING_UPDATE
           
 
Method Summary
 ClientGxSessionState fromInt(int v)
           
 int getValue()
           
static ClientGxSessionState valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ClientGxSessionState[] 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

IDLE

public static final ClientGxSessionState IDLE

PENDING_EVENT

public static final ClientGxSessionState PENDING_EVENT

PENDING_INITIAL

public static final ClientGxSessionState PENDING_INITIAL

PENDING_UPDATE

public static final ClientGxSessionState PENDING_UPDATE

PENDING_TERMINATION

public static final ClientGxSessionState PENDING_TERMINATION

PENDING_BUFFERED

public static final ClientGxSessionState PENDING_BUFFERED

OPEN

public static final ClientGxSessionState OPEN
Method Detail

values

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

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

valueOf

public static ClientGxSessionState 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
java.lang.NullPointerException - if the argument is null

fromInt

public ClientGxSessionState fromInt(int v)
                             throws java.lang.IllegalArgumentException
Specified by:
fromInt in interface IAppSessionState<ClientGxSessionState>
Throws:
java.lang.IllegalArgumentException

getValue

public int getValue()
Specified by:
getValue in interface IAppSessionState<ClientGxSessionState>


Copyright © 2014. All Rights Reserved.