Class NetworkInterface
- All Implemented Interfaces:
Serializable
,Cloneable
Describes a gateway's network interface.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The Internet Protocol version 4 (IPv4) address of the interface.The Internet Protocol version 6 (IPv6) address of the interface.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.toString()
Returns a string representation of this object; useful for testing and debugging.withIpv4Address
(String ipv4Address) The Internet Protocol version 4 (IPv4) address of the interface.withIpv6Address
(String ipv6Address) The Internet Protocol version 6 (IPv6) address of the interface.withMacAddress
(String macAddress) The Media Access Control (MAC) address of the interface.
-
Constructor Details
-
NetworkInterface
public NetworkInterface()
-
-
Method Details
-
setIpv4Address
The Internet Protocol version 4 (IPv4) address of the interface.
- Parameters:
ipv4Address
- The Internet Protocol version 4 (IPv4) address of the interface.
-
getIpv4Address
The Internet Protocol version 4 (IPv4) address of the interface.
- Returns:
- The Internet Protocol version 4 (IPv4) address of the interface.
-
withIpv4Address
The Internet Protocol version 4 (IPv4) address of the interface.
- Parameters:
ipv4Address
- The Internet Protocol version 4 (IPv4) address of the interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMacAddress
The Media Access Control (MAC) address of the interface.
This is currently unsupported and will not be returned in output.
- Parameters:
macAddress
- The Media Access Control (MAC) address of the interface.This is currently unsupported and will not be returned in output.
-
getMacAddress
The Media Access Control (MAC) address of the interface.
This is currently unsupported and will not be returned in output.
- Returns:
- The Media Access Control (MAC) address of the interface.
This is currently unsupported and will not be returned in output.
-
withMacAddress
The Media Access Control (MAC) address of the interface.
This is currently unsupported and will not be returned in output.
- Parameters:
macAddress
- The Media Access Control (MAC) address of the interface.This is currently unsupported and will not be returned in output.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setIpv6Address
The Internet Protocol version 6 (IPv6) address of the interface. Currently not supported.
- Parameters:
ipv6Address
- The Internet Protocol version 6 (IPv6) address of the interface. Currently not supported.
-
getIpv6Address
The Internet Protocol version 6 (IPv6) address of the interface. Currently not supported.
- Returns:
- The Internet Protocol version 6 (IPv6) address of the interface. Currently not supported.
-
withIpv6Address
The Internet Protocol version 6 (IPv6) address of the interface. Currently not supported.
- Parameters:
ipv6Address
- The Internet Protocol version 6 (IPv6) address of the interface. Currently not supported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-