public class NetworkInterface extends Object implements Serializable
Describes a gateway's network interface.
Constructor and Description |
---|
NetworkInterface() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getIpv4Address()
The Internet Protocol version 4 (IPv4) address of the interface.
|
String |
getIpv6Address()
The Internet Protocol version 6 (IPv6) address of the interface.
|
String |
getMacAddress()
The Media Access Control (MAC) address of the interface.
|
int |
hashCode() |
void |
setIpv4Address(String ipv4Address)
The Internet Protocol version 4 (IPv4) address of the interface.
|
void |
setIpv6Address(String ipv6Address)
The Internet Protocol version 6 (IPv6) address of the interface.
|
void |
setMacAddress(String macAddress)
The Media Access Control (MAC) address of the interface.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
NetworkInterface |
withIpv4Address(String ipv4Address)
The Internet Protocol version 4 (IPv4) address of the interface.
|
NetworkInterface |
withIpv6Address(String ipv6Address)
The Internet Protocol version 6 (IPv6) address of the interface.
|
NetworkInterface |
withMacAddress(String macAddress)
The Media Access Control (MAC) address of the interface.
|
public String getIpv4Address()
public void setIpv4Address(String ipv4Address)
ipv4Address
- The Internet Protocol version 4 (IPv4) address of the interface.public NetworkInterface withIpv4Address(String ipv4Address)
Returns a reference to this object so that method calls can be chained together.
ipv4Address
- The Internet Protocol version 4 (IPv4) address of the interface.public String getMacAddress()
public void setMacAddress(String macAddress)
macAddress
- The Media Access Control (MAC) address of the interface. public NetworkInterface withMacAddress(String macAddress)
Returns a reference to this object so that method calls can be chained together.
macAddress
- The Media Access Control (MAC) address of the interface. public String getIpv6Address()
public void setIpv6Address(String ipv6Address)
ipv6Address
- The Internet Protocol version 6 (IPv6) address of the interface.
Currently not supported.public NetworkInterface withIpv6Address(String ipv6Address)
Returns a reference to this object so that method calls can be chained together.
ipv6Address
- The Internet Protocol version 6 (IPv6) address of the interface.
Currently not supported.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.