jnetpcap.capture
Enum CaptureInterface.TimestampResolution

java.lang.Object
  extended by java.lang.Enum<CaptureInterface.TimestampResolution>
      extended by jnetpcap.capture.CaptureInterface.TimestampResolution
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CaptureInterface.TimestampResolution>
Enclosing interface:
CaptureInterface

public static enum CaptureInterface.TimestampResolution
extends java.lang.Enum<CaptureInterface.TimestampResolution>


Enum Constant Summary
MicroSecond
          Timestamp has microsecond resolution
NanoSecond
          Timestamp has nanosecond resolution
 
Method Summary
static CaptureInterface.TimestampResolution valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CaptureInterface.TimestampResolution[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

MicroSecond

public static final CaptureInterface.TimestampResolution MicroSecond
Timestamp has microsecond resolution


NanoSecond

public static final CaptureInterface.TimestampResolution NanoSecond
Timestamp has nanosecond resolution

Method Detail

values

public static final CaptureInterface.TimestampResolution[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(CaptureInterface.TimestampResolution c : CaptureInterface.TimestampResolution.values())
        System.out.println(c);

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

valueOf

public static CaptureInterface.TimestampResolution 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