public enum NetworkInterfaceManager extends Enum<NetworkInterfaceManager>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
InetAddress |
findValidateIp(List<InetAddress> addresses) |
String |
getLocalHostAddress() |
String |
getLocalHostName() |
static NetworkInterfaceManager |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NetworkInterfaceManager[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NetworkInterfaceManager INSTANCE
public static NetworkInterfaceManager[] values()
for (NetworkInterfaceManager c : NetworkInterfaceManager.values()) System.out.println(c);
public static NetworkInterfaceManager 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 InetAddress findValidateIp(List<InetAddress> addresses)
public String getLocalHostAddress()
public String getLocalHostName()
Copyright © 2018 Ctrip, Inc.. All rights reserved.