public class NetworkInterface
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
addNetworkInterfaceChangeListener(NetworkInterfaceChangeListener listener)
Add a
NetworkInterfaceChangeListener to this NetworkInterface. |
boolean |
containsIPAddress(IPAddress ipAddress) |
boolean |
containsIPAddress(java.lang.Long[] key) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDisplayName()
Returns the display name of this network interface.
|
Iterator |
getIPAddresses()
Returns an Iterator with all network addresses for this network interface.
|
Iterator |
getIPv4Addresses()
Returns an Iterator with all ipv4 network addresses for this network interface.
|
int |
getIPv4AddressesCount()
Returns the count of ipv4 addresses.
|
Iterator |
getIPv6Addresses()
Returns an Iterator with all ipv6 network addresses for this network interface.
|
int |
getIPv6AddressesCount()
Returns the count of ipv6 addresses.
|
java.lang.String |
getName()
Returns the name of this network interface.
|
int |
hashCode() |
boolean |
hasIPv4Addresses()
Returns whether this interfaces has ipv4 addresses.
|
boolean |
hasIPv6Addresses()
Returns whether this interfaces has ipv6 addresses.
|
boolean |
isLoopback() |
boolean |
isUp() |
void |
removed() |
void |
removeNetworkInterfaceChangeListener(NetworkInterfaceChangeListener listener)
Remove the given
NetworkInterfaceChangeListener from this NetworkInterface. |
boolean |
supportsMulticast() |
java.lang.String |
toString() |
protected void |
update(NetworkInterface updated) |
protected void update(NetworkInterface updated)
public void removed()
public java.lang.String getName()
public java.lang.String getDisplayName()
public Iterator getIPAddresses()
public Iterator getIPv4Addresses()
public Iterator getIPv6Addresses()
public int getIPv4AddressesCount()
public int getIPv6AddressesCount()
public boolean hasIPv4Addresses()
public boolean hasIPv6Addresses()
public boolean supportsMulticast()
public boolean containsIPAddress(IPAddress ipAddress)
ipAddress - public boolean containsIPAddress(java.lang.Long[] key)
ipAddress - public boolean isUp()
public boolean isLoopback()
public void addNetworkInterfaceChangeListener(NetworkInterfaceChangeListener listener)
NetworkInterfaceChangeListener to this NetworkInterface. The listener
will be announced if changes on this interface are performed.listener - public void removeNetworkInterfaceChangeListener(NetworkInterfaceChangeListener listener)
NetworkInterfaceChangeListener from this NetworkInterface.listener - public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object