public enum HostAddrType extends Enum<HostAddrType>
Enum Constant and Description |
---|
ADDRTYPE_APPLETALK
Constant for the "AppleTalk" host address type.
|
ADDRTYPE_CHAOS
Constant for the "CHAOS" host address type.
|
ADDRTYPE_DECNET
Constant for the "DECnet" host address type.
|
ADDRTYPE_IMPLINK
Constant for the "Arpanet" host address type.
|
ADDRTYPE_INET
Constant for the "Internet" host address type.
|
ADDRTYPE_INET6
Constant for the "Internet Protocol V6" host address type.
|
ADDRTYPE_NETBIOS
Constant for the "NetBios" host address type.
|
ADDRTYPE_OSI
Constant for the "OSI" host address type.
|
ADDRTYPE_XNS
Constant for the "XEROX Network Services" host address type.
|
NULL
Constant for the "null" host address type.
|
Modifier and Type | Method and Description |
---|---|
static HostAddrType |
getTypeByOrdinal(int type)
Returns the host address type when specified by its ordinal.
|
int |
getValue()
Returns the number associated with this host address type.
|
String |
toString() |
static HostAddrType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HostAddrType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HostAddrType NULL
public static final HostAddrType ADDRTYPE_INET
public static final HostAddrType ADDRTYPE_IMPLINK
public static final HostAddrType ADDRTYPE_CHAOS
public static final HostAddrType ADDRTYPE_XNS
public static final HostAddrType ADDRTYPE_OSI
public static final HostAddrType ADDRTYPE_DECNET
public static final HostAddrType ADDRTYPE_APPLETALK
public static final HostAddrType ADDRTYPE_NETBIOS
public static final HostAddrType ADDRTYPE_INET6
public static HostAddrType[] values()
for (HostAddrType c : HostAddrType.values()) System.out.println(c);
public static HostAddrType 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 HostAddrType getTypeByOrdinal(int type)
type
- public int getValue()
public String toString()
toString
in class Enum<HostAddrType>
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.