Method Summary |
|
public boolean | equals(Object obj) Compares this object against the specified object.
The result is true if and only if the argument is
not null and it represents the same NetworkInterface
as this object.
Two instances of NetworkInterface represent the same
NetworkInterface if both name and addrs are the same for both.
Parameters: obj - the object to compare against. |
native static NetworkInterface | getByIndex(int index) Get a network interface given its index. |
public static NetworkInterface | getByInetAddress(InetAddress addr) Convenience method to search for a network interface that
has the specified Internet Protocol (IP) address bound to
it.
If the specified IP address is bound to multiple network
interfaces it is not defined which network interface is
returned.
Parameters: addr - The InetAddress to search with. |
public static NetworkInterface | getByName(String name) Searches for the network interface with the specified name.
Parameters: name - The name of the network interface. |
public String | getDisplayName() Get the display name of this network interface. |
int | getIndex() Get the index of this network interface. |
public Enumeration | getInetAddresses() Convenience method to return an Enumeration with all or a
subset of the InetAddresses bound to this network interface.
If there is a security manager, its checkConnect
method is called for each InetAddress. |
public String | getName() Get the name of this network interface. |
public static Enumeration | getNetworkInterfaces() Returns all the interfaces on this machine. |
public int | hashCode() |
public String | toString() |