public final class NetworkInterface extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Default object equality (is identity).
|
static NetworkInterface |
getByInetAddress(InetAddress addr) |
static NetworkInterface |
getByName(String name) |
String |
getDisplayName() |
Enumeration |
getInetAddresses() |
String |
getName() |
static Enumeration |
getNetworkInterfaces() |
int |
hashCode()
The (default) object hashcode: for transient objects this is simply the
address of the instance in memory, for persistent objects it is the
address at which the instance was first created (maybe in a previous
activation of the VM).
|
String |
toString()
Default String representation: overriden by many classes.
|
public String getName()
public Enumeration getInetAddresses()
public String getDisplayName()
public boolean equals(Object obj)
Object
public int hashCode()
Object
public String toString()
Object
public static NetworkInterface getByName(String name) throws SocketException
SocketException
public static NetworkInterface getByInetAddress(InetAddress addr) throws SocketException
SocketException
public static Enumeration getNetworkInterfaces() throws SocketException
SocketException