Package io.netty.handler.pcap
Enum TCPPacket.TCPFlag
- java.lang.Object
-
- java.lang.Enum<TCPPacket.TCPFlag>
-
- io.netty.handler.pcap.TCPPacket.TCPFlag
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TCPPacket.TCPFlag>
- Enclosing class:
- TCPPacket
static enum TCPPacket.TCPFlag extends java.lang.Enum<TCPPacket.TCPFlag>
-
-
Field Summary
Fields Modifier and Type Field Description private int
value
-
Constructor Summary
Constructors Modifier Constructor Description private
TCPFlag(int value)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static int
getFlag(TCPPacket.TCPFlag... tcpFlags)
static TCPPacket.TCPFlag
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TCPPacket.TCPFlag[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FIN
public static final TCPPacket.TCPFlag FIN
-
SYN
public static final TCPPacket.TCPFlag SYN
-
RST
public static final TCPPacket.TCPFlag RST
-
PSH
public static final TCPPacket.TCPFlag PSH
-
ACK
public static final TCPPacket.TCPFlag ACK
-
URG
public static final TCPPacket.TCPFlag URG
-
ECE
public static final TCPPacket.TCPFlag ECE
-
CWR
public static final TCPPacket.TCPFlag CWR
-
-
Method Detail
-
values
public static TCPPacket.TCPFlag[] 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 (TCPPacket.TCPFlag c : TCPPacket.TCPFlag.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TCPPacket.TCPFlag 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
-
getFlag
static int getFlag(TCPPacket.TCPFlag... tcpFlags)
-
-