Java™ Platform
Standard Ed. 8
- Summary:
- Nested |
- Field |
- Constr |
- Method
- Detail:
- Field |
- Constr |
- Method
compact1, compact2, compact3
java.net
Class InterfaceAddress
-
public class InterfaceAddress
extends Object
This class represents a Network Interface address. In short it's an
IP address, a subnet mask and a broadcast address when the address is
an IPv4 one. An IP address and a network prefix length in the case
of IPv6 address.
- Since:
- 1.6
- See Also:
NetworkInterface
-
-
Method Summary
All Methods Instance Methods Concrete Methods
| Modifier and Type |
Method |
Description |
boolean |
equals(Object obj) |
Compares this object against the specified object.
|
InetAddress |
getAddress() |
Returns an InetAddress for this address.
|
InetAddress |
getBroadcast() |
Returns an InetAddress for the broadcast address
for this InterfaceAddress.
|
short |
getNetworkPrefixLength() |
Returns the network prefix length for this address.
|
int |
hashCode() |
Returns a hashcode for this Interface address.
|
String |
toString() |
Converts this Interface address to a String.
|
Java™ Platform
Standard Ed. 8
- Summary:
- Nested |
- Field |
- Constr |
- Method
- Detail:
- Field |
- Constr |
- Method
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.