public static enum ServerName.NameType extends Enum<ServerName.NameType>
| Enum Constant and Description |
|---|
HOST_NAME
The host name type.
|
UNDEFINED
Undefined type.
|
| Modifier and Type | Method and Description |
|---|---|
static ServerName.NameType |
fromCode(byte code)
Gets the name type for a code.
|
byte |
getCode()
Gets the type's code.
|
static ServerName.NameType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ServerName.NameType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServerName.NameType HOST_NAME
public static final ServerName.NameType UNDEFINED
public static ServerName.NameType[] values()
for (ServerName.NameType c : ServerName.NameType.values()) System.out.println(c);
public static ServerName.NameType 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 byte getCode()
public static ServerName.NameType fromCode(byte code)
code - The type code.null if no type with the given code is defined.Copyright © 2023 Eclipse Foundation. All rights reserved.