Enum Class GtpV1Packet.ProtocolType

java.lang.Object
java.lang.Enum<GtpV1Packet.ProtocolType>
org.pcap4j.packet.GtpV1Packet.ProtocolType
All Implemented Interfaces:
Serializable, Comparable<GtpV1Packet.ProtocolType>, Constable
Enclosing class:
GtpV1Packet

public static enum GtpV1Packet.ProtocolType extends Enum<GtpV1Packet.ProtocolType>
GTP Protocol Type
Since:
pcap4j 1.6.6
See Also:
  • Enum Constant Details

  • Field Details

    • value

      private final boolean value
  • Constructor Details

    • ProtocolType

      private ProtocolType(boolean value)
  • Method Details

    • values

      public static GtpV1Packet.ProtocolType[] 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

      public static GtpV1Packet.ProtocolType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getInstance

      public static GtpV1Packet.ProtocolType getInstance(boolean value)
      Parameters:
      value - value
      Returns:
      a ProtocolType object.
    • getValue

      public boolean getValue()
      Returns:
      true if GTP; false otherwise (GTP').
    • toString

      public String toString()
      Overrides:
      toString in class Enum<GtpV1Packet.ProtocolType>