public static enum PcapHandle.TimestampPrecision extends Enum<PcapHandle.TimestampPrecision>
Enum Constant and Description |
---|
MICRO
use timestamps with microsecond precision, default
|
NANO
use timestamps with nanosecond precision
|
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
static PcapHandle.TimestampPrecision |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PcapHandle.TimestampPrecision[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PcapHandle.TimestampPrecision MICRO
public static final PcapHandle.TimestampPrecision NANO
public static PcapHandle.TimestampPrecision[] values()
for (PcapHandle.TimestampPrecision c : PcapHandle.TimestampPrecision.values()) System.out.println(c);
public static PcapHandle.TimestampPrecision valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic int getValue()
Copyright © 2011–2016 Pcap4J.org. All rights reserved.