org.jnetpcap.util
Enum Debug.Level

java.lang.Object
  extended by java.lang.Enum<Debug.Level>
      extended by org.jnetpcap.util.Debug.Level
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Debug.Level>, Debug.LevelId
Enclosing class:
Debug

public static enum Debug.Level
extends java.lang.Enum<Debug.Level>
implements Debug.LevelId

Defines various message severity levels.

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Enum Constant Summary
ERROR
          The ERROR.
INFO
          The INFO.
TRACE
          The TRACE.
WARN
          The WARN.
 
Method Summary
 int intValue()
          Gets the numerical id for this level constant.
static Debug.Level valueOf(int level)
          Value of.
static Debug.Level valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Debug.Level[] 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

ERROR

public static final Debug.Level ERROR
The ERROR.


WARN

public static final Debug.Level WARN
The WARN.


INFO

public static final Debug.Level INFO
The INFO.


TRACE

public static final Debug.Level TRACE
The TRACE.

Method Detail

values

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

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

valueOf

public static Debug.Level 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

intValue

public int intValue()
Gets the numerical id for this level constant.

Specified by:
intValue in interface Debug.LevelId
Returns:
numerical id
See Also:
Debug.LevelId.intValue()

valueOf

public static Debug.Level valueOf(int level)
Value of.

Parameters:
level - the level
Returns:
the level