net.sf.jack4j
Enum JackTransportState

java.lang.Object
  extended by java.lang.Enum<JackTransportState>
      extended by net.sf.jack4j.JackTransportState
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<JackTransportState>

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

Java version of Jack enum jack_transport_state_t.

Author:
repa

Enum Constant Summary
LOOPING
           
ROLLING
           
STARTING
           
STOPPED
           
 
Method Summary
static JackTransportState byIntValue(int intValue)
          Returns the enum constant with given integer value.
 int intValue()
          Returns integer value of native constant corresponding to this enum value.
protected abstract  int nativeIntValue()
           
static JackTransportState valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static JackTransportState[] 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

STOPPED

public static final JackTransportState STOPPED

ROLLING

public static final JackTransportState ROLLING

LOOPING

public static final JackTransportState LOOPING

STARTING

public static final JackTransportState STARTING
Method Detail

values

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

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

valueOf

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

nativeIntValue

protected abstract int nativeIntValue()

intValue

public int intValue()
Returns integer value of native constant corresponding to this enum value.


byIntValue

public static JackTransportState byIntValue(int intValue)
Returns the enum constant with given integer value.



Copyright © 2008 Ondrej Par. All Rights Reserved.