public enum RecordClass extends Enum<RecordClass> implements EnumConverter<Short>
Enum Constant and Description |
---|
ANY
Any class
|
CH
CHAOS class
|
CS
CSNET class
|
HS
Hesiod [Dyer 87]
|
IN
Internet
|
NONE
Special value used in dynamic update messages
|
Modifier and Type | Method and Description |
---|---|
Short |
convert()
Convert the enum to another type.
|
static RecordClass |
convert(short value)
Converts an ordinal value into a
RecordClass . |
static RecordClass |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RecordClass[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RecordClass IN
public static final RecordClass CS
public static final RecordClass CH
public static final RecordClass HS
public static final RecordClass NONE
public static final RecordClass ANY
public static RecordClass[] values()
for (RecordClass c : RecordClass.values()) System.out.println(c);
public static RecordClass 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 Short convert()
EnumConverter
convert
in interface EnumConverter<Short>
public static RecordClass convert(short value)
RecordClass
.value
- RecordClass
.Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.