GeezerVison is showing docs.oracle.com — Inet4Address (Java Platform SE 8 )
Java™ Platform Standard Ed. 8
- Summary:
- Nested |
- Field |
- Constr |
- Method
- Detail:
- Field |
- Constr |
- Method
compact1, compact2, compact3
java.net
Class Inet4Address
-
-
Method Summary
All Methods Instance Methods Concrete Methods
| Modifier and Type |
Method |
Description |
boolean |
equals(Object obj) |
Compares this object against the specified object.
|
byte[] |
getAddress() |
Returns the raw IP address of this InetAddress
object.
|
String |
getHostAddress() |
Returns the IP address string in textual presentation form.
|
int |
hashCode() |
Returns a hashcode for this IP address.
|
boolean |
isAnyLocalAddress() |
Utility routine to check if the InetAddress in a wildcard address.
|
boolean |
isLinkLocalAddress() |
Utility routine to check if the InetAddress is an link local address.
|
boolean |
isLoopbackAddress() |
Utility routine to check if the InetAddress is a loopback address.
|
boolean |
isMCGlobal() |
Utility routine to check if the multicast address has global scope.
|
boolean |
isMCLinkLocal() |
Utility routine to check if the multicast address has link scope.
|
boolean |
isMCNodeLocal() |
Utility routine to check if the multicast address has node scope.
|
boolean |
isMCOrgLocal() |
Utility routine to check if the multicast address has organization scope.
|
boolean |
isMCSiteLocal() |
Utility routine to check if the multicast address has site scope.
|
boolean |
isMulticastAddress() |
Utility routine to check if the InetAddress is an
IP multicast address.
|
boolean |
isSiteLocalAddress() |
Utility routine to check if the InetAddress is a site local address.
|
-
Methods inherited from class java.net.InetAddress
getAllByName, getByAddress, getByAddress, getByName, getCanonicalHostName, getHostName, getLocalHost, getLoopbackAddress, isReachable, isReachable, toString
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.
|