public enum AddressInfo extends Enum<AddressInfo> implements Constant
| Enum Constant and Description |
|---|
AI_ADDRCONFIG |
AI_CANONNAME |
AI_MASK |
AI_NUMERICHOST |
AI_NUMERICSERV |
AI_PASSIVE |
| Modifier and Type | Field and Description |
|---|---|
static long |
MAX_VALUE |
static long |
MIN_VALUE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
defined() |
int |
intValue() |
long |
longValue() |
String |
toString() |
int |
value() |
static AddressInfo |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AddressInfo[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AddressInfo AI_PASSIVE
public static final AddressInfo AI_CANONNAME
public static final AddressInfo AI_NUMERICHOST
public static final AddressInfo AI_NUMERICSERV
public static final AddressInfo AI_MASK
public static final AddressInfo AI_ADDRCONFIG
public static final long MIN_VALUE
public static final long MAX_VALUE
public static AddressInfo[] values()
for (AddressInfo c : AddressInfo.values()) System.out.println(c);
public static AddressInfo 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 final String toString()
toString in class Enum<AddressInfo>public final int value()
Copyright © 2025. All rights reserved.