public class NetworkInterface
extends java.lang.Object
implements java.io.Serializable
Describes a gateway's network interface.
| コンストラクタと説明 |
|---|
NetworkInterface() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getIpv4Address()
The Internet Protocol version 4 (IPv4) address of the interface.
|
java.lang.String |
getIpv6Address()
The Internet Protocol version 6 (IPv6) address of the interface.
|
java.lang.String |
getMacAddress()
The Media Access Control (MAC) address of the interface.
|
int |
hashCode() |
void |
setIpv4Address(java.lang.String ipv4Address)
The Internet Protocol version 4 (IPv4) address of the interface.
|
void |
setIpv6Address(java.lang.String ipv6Address)
The Internet Protocol version 6 (IPv6) address of the interface.
|
void |
setMacAddress(java.lang.String macAddress)
The Media Access Control (MAC) address of the interface.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
NetworkInterface |
withIpv4Address(java.lang.String ipv4Address)
The Internet Protocol version 4 (IPv4) address of the interface.
|
NetworkInterface |
withIpv6Address(java.lang.String ipv6Address)
The Internet Protocol version 6 (IPv6) address of the interface.
|
NetworkInterface |
withMacAddress(java.lang.String macAddress)
The Media Access Control (MAC) address of the interface.
|
public java.lang.String getIpv4Address()
public void setIpv4Address(java.lang.String ipv4Address)
ipv4Address - The Internet Protocol version 4 (IPv4) address of the interface.public NetworkInterface withIpv4Address(java.lang.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 java.lang.String getMacAddress()
public void setMacAddress(java.lang.String macAddress)
macAddress - The Media Access Control (MAC) address of the interface. public NetworkInterface withMacAddress(java.lang.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 java.lang.String getIpv6Address()
public void setIpv6Address(java.lang.String ipv6Address)
ipv6Address - The Internet Protocol version 6 (IPv6) address of the interface.
Currently not supported.public NetworkInterface withIpv6Address(java.lang.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 java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object