net.sf.jack4j
Enum JackStatus

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

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

Java version of Jack enum JackStatus.

Author:
repa

Enum Constant Summary
JackFailure
           
JackInitFailure
           
JackInvalidOption
           
JackLoadFailure
           
JackNameNotUnique
           
JackNoSuchClient
           
JackServerError
           
JackServerFailed
           
JackServerStarted
           
JackShmFailure
           
JackVersionError
           
 
Method Summary
static java.util.EnumSet<JackStatus> decode(int value)
          Decodes int value as set of enum values.
static int encode(java.util.Set<JackStatus> flags)
          Encodes set of enum constants as int, by ORing their values together.
 int intValue()
          Returns integer value of native constant corresponding to this enum value.
protected abstract  int nativeIntValue()
           
static JackStatus valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static JackStatus[] 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

JackFailure

public static final JackStatus JackFailure

JackInvalidOption

public static final JackStatus JackInvalidOption

JackNameNotUnique

public static final JackStatus JackNameNotUnique

JackServerStarted

public static final JackStatus JackServerStarted

JackServerFailed

public static final JackStatus JackServerFailed

JackServerError

public static final JackStatus JackServerError

JackNoSuchClient

public static final JackStatus JackNoSuchClient

JackLoadFailure

public static final JackStatus JackLoadFailure

JackInitFailure

public static final JackStatus JackInitFailure

JackShmFailure

public static final JackStatus JackShmFailure

JackVersionError

public static final JackStatus JackVersionError
Method Detail

values

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

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

valueOf

public static JackStatus 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.


encode

public static int encode(java.util.Set<JackStatus> flags)
Encodes set of enum constants as int, by ORing their values together.


decode

public static java.util.EnumSet<JackStatus> decode(int value)
Decodes int value as set of enum values.

The value must be a result of ORing values of native enum constants.

Throws:
java.lang.IllegalArgumentException - if the value contains unrecognized bits


Copyright © 2008 Ondrej Par. All Rights Reserved.