Enum Class GtpV1Packet.ProtocolType
- All Implemented Interfaces:
Serializable, Comparable<GtpV1Packet.ProtocolType>, Constable
- Enclosing class:
GtpV1Packet
GTP Protocol Type
- Since:
- pcap4j 1.6.6
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GtpV1Packet.ProtocolTypegetInstance(boolean value) booleangetValue()toString()static GtpV1Packet.ProtocolTypeReturns the enum constant of this class with the specified name.static GtpV1Packet.ProtocolType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GTP_PRIME
GTP': false -
GTP
GTP: true
-
-
Field Details
-
value
private final boolean value
-
-
Constructor Details
-
ProtocolType
private ProtocolType(boolean value)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getInstance
- Parameters:
value- value- Returns:
- a ProtocolType object.
-
getValue
public boolean getValue()- Returns:
- true if GTP; false otherwise (GTP').
-
toString
- Overrides:
toStringin classEnum<GtpV1Packet.ProtocolType>
-