Package org.opencord.bng.packets
Enum Pppoe.PppoeType
- java.lang.Object
-
- java.lang.Enum<Pppoe.PppoeType>
-
- org.opencord.bng.packets.Pppoe.PppoeType
-
- All Implemented Interfaces:
Serializable,Comparable<Pppoe.PppoeType>
- Enclosing class:
- Pppoe
public static enum Pppoe.PppoeType extends Enum<Pppoe.PppoeType>
PPPoE Discovery types.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description bytecode()static Pppoe.PppoeTypelookup(byte code)Stringtype()static Pppoe.PppoeTypevalueOf(String name)Returns the enum constant of this type with the specified name.static Pppoe.PppoeType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PADI
public static final Pppoe.PppoeType PADI
-
PADO
public static final Pppoe.PppoeType PADO
-
PADR
public static final Pppoe.PppoeType PADR
-
PADS
public static final Pppoe.PppoeType PADS
-
PADT
public static final Pppoe.PppoeType PADT
-
SESSION
public static final Pppoe.PppoeType SESSION
-
UNKNOWN
public static final Pppoe.PppoeType UNKNOWN
-
-
Method Detail
-
values
public static Pppoe.PppoeType[] 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 (Pppoe.PppoeType c : Pppoe.PppoeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Pppoe.PppoeType valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
lookup
public static Pppoe.PppoeType lookup(byte code)
-
code
public byte code()
-
type
public String type()
-
-