org.jnetpcap.protocol.network
Enum Arp.ProtocolType

java.lang.Object
  extended by java.lang.Enum<Arp.ProtocolType>
      extended by org.jnetpcap.protocol.network.Arp.ProtocolType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Arp.ProtocolType>
Enclosing class:
Arp

public static enum Arp.ProtocolType
extends java.lang.Enum<Arp.ProtocolType>

Definitions for supported protocol types.

Author:
Mark Bednarczyk, Sly Technologies, Inc@SuppressWarnings("unused") .

Enum Constant Summary
IP
          The IP.
 
Method Summary
static Arp.ProtocolType valueOf(int value)
          Convert a numerical protocol type number to constant.
static Arp.ProtocolType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Arp.ProtocolType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

IP

public static final Arp.ProtocolType IP
The IP.

Method Detail

values

public static Arp.ProtocolType[] 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 (Arp.ProtocolType c : Arp.ProtocolType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Arp.ProtocolType 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 name
java.lang.NullPointerException - if the argument is null

valueOf

public static Arp.ProtocolType valueOf(int value)
Convert a numerical protocol type number to constant.

Parameters:
value - value of the protocol type field
Returns:
corresponding constant or null if none matched