public enum INAddr extends Enum<INAddr> implements Constant
Enum Constant and Description |
---|
__UNKNOWN_CONSTANT__ |
INADDR_ALLHOSTS_GROUP |
INADDR_ALLRTRS_GROUP |
INADDR_ANY |
INADDR_BROADCAST |
INADDR_LOOPBACK |
INADDR_MAX_LOCAL_GROUP |
INADDR_NONE |
INADDR_UNSPEC_GROUP |
Modifier and Type | Method and Description |
---|---|
boolean |
defined() |
String |
description() |
int |
intValue() |
long |
longValue() |
String |
toString() |
static INAddr |
valueOf(long value) |
static INAddr |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static INAddr[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final INAddr INADDR_ANY
public static final INAddr INADDR_BROADCAST
public static final INAddr INADDR_NONE
public static final INAddr INADDR_LOOPBACK
public static final INAddr INADDR_UNSPEC_GROUP
public static final INAddr INADDR_ALLHOSTS_GROUP
public static final INAddr INADDR_ALLRTRS_GROUP
public static final INAddr INADDR_MAX_LOCAL_GROUP
public static final INAddr __UNKNOWN_CONSTANT__
public static INAddr[] values()
for (INAddr c : INAddr.values()) System.out.println(c);
public static INAddr 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 description()
public static INAddr valueOf(long value)
Copyright © 2017. All Rights Reserved.