Package org.pcap4j.core
Enum PcapHandle.BlockingMode
- java.lang.Object
-
- java.lang.Enum<PcapHandle.BlockingMode>
-
- org.pcap4j.core.PcapHandle.BlockingMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PcapHandle.BlockingMode>
,java.lang.constant.Constable
- Enclosing class:
- PcapHandle
public static enum PcapHandle.BlockingMode extends java.lang.Enum<PcapHandle.BlockingMode>
- Author:
- Kaito Yamada
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLOCKING
NONBLOCKING
-
Method Summary
Modifier and Type Method Description int
getValue()
static PcapHandle.BlockingMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PcapHandle.BlockingMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BLOCKING
public static final PcapHandle.BlockingMode BLOCKING
-
NONBLOCKING
public static final PcapHandle.BlockingMode NONBLOCKING
-
-
Method Detail
-
values
public static PcapHandle.BlockingMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PcapHandle.BlockingMode 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 namejava.lang.NullPointerException
- if the argument is null
-
getValue
public int getValue()
- Returns:
- value
-
-