public enum MessageType extends Enum<MessageType>
Enum Constant and Description |
---|
DHCPACK |
DHCPDECLINE |
DHCPDISCOVER |
DHCPINFORM |
DHCPNAK |
DHCPOFFER |
DHCPRELEASE |
DHCPREQUEST |
DHCPUNRECOGNIZED |
Modifier and Type | Method and Description |
---|---|
byte |
getCode() |
static MessageType |
getTypeByCode(byte type) |
String |
toString() |
static MessageType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MessageType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MessageType DHCPUNRECOGNIZED
public static final MessageType DHCPDISCOVER
public static final MessageType DHCPOFFER
public static final MessageType DHCPREQUEST
public static final MessageType DHCPDECLINE
public static final MessageType DHCPACK
public static final MessageType DHCPNAK
public static final MessageType DHCPRELEASE
public static final MessageType DHCPINFORM
public static MessageType[] values()
for (MessageType c : MessageType.values()) System.out.println(c);
public static MessageType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static MessageType getTypeByCode(byte type)
public byte getCode()
public String toString()
toString
in class Enum<MessageType>
Copyright © 2003–2023 The Apache Software Foundation. All rights reserved.