| java.lang.Object | |||
| java.net.InetAddress | Serializable | ||
| java.net.Inet4Address | |||
| boolean | equals(Object obj) | ||||
| Returns true if obj is of the same type as the IPv4 address and they have the same IP address, false otherwise. | |||||
| String | getHostAddress() | ||||
| Returns a String representation of the IP address. | |||||
| int | hashCode() | ||||
| Overrides the basic hashcode function. | |||||
| boolean | isAnyLocalAddress() | ||||
| Answers if the address is the ANY Address | |||||
| boolean | isLinkLocalAddress() | ||||
| Answers whether this address has link-local scope. | |||||
| boolean | isLoopbackAddress() | ||||
| Answers true if the address is a loopback address. | |||||
| boolean | isMCGlobal() | ||||
| Answers true if an address is a global multicast address. | |||||
| boolean | isMCLinkLocal() | ||||
| Answers true if the address is a link-local address.The valid range for IPv4 link-local addresses is: 224.0.0.0 to 239.0.0.255 Hence a mask of 111000000000000000000000 = 0xE00000 | |||||
| boolean | isMCNodeLocal() | ||||
| Answers false for all IPv4 addresses. | |||||
| boolean | isMCOrgLocal() | ||||
| Answers true if the address is a organization-local address. | |||||
| boolean | isMCSiteLocal() | ||||
| Answers true if the address is a site-local address.The valid range for IPv4 site-local addresses is: 239.255.0.0 to 239.255.255.255 Hence a mask of 11101111 11111111 = 0xEFFF. | |||||
| boolean | isMulticastAddress() | ||||
| Answers true if the address is a multicast address. | |||||
| boolean | isSiteLocalAddress() | ||||
| Answers whether this address has site-local scope. | |||||
Methods inherited
from class
java.net.InetAddress
Methods inherited
from class
java.lang.Object
| obj | the object to be tested for equality |
|---|