| java.lang.Object | ||
| ↳ | java.net.InetAddress | |
| ↳ | java.net.Inet4Address | |
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns true if obj is of the same type as the IPv4 address and they have
the same IP address, false otherwise.
| |||||||||||
Returns a String representation of the IP address.
| |||||||||||
Overrides the basic hashcode function.
| |||||||||||
Returns if the address is the ANY Address
| |||||||||||
Returns whether this address has link-local scope.
| |||||||||||
Returns true if the address is a loopback address.
| |||||||||||
Returns true if an address is a global multicast address.
| |||||||||||
Returns 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
| |||||||||||
Returns false for all IPv4 addresses.
| |||||||||||
Returns true if the address is a organization-local address.
| |||||||||||
Returns 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.
| |||||||||||
Returns true if the address is a multicast address.
| |||||||||||
Returns whether this address has site-local scope.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class java.net.InetAddress
| |||||||||||
From class java.lang.Object
| |||||||||||
Returns true if obj is of the same type as the IPv4 address and they have the same IP address, false otherwise.
| obj | the object to be tested for equality |
|---|
Returns a String representation of the IP address.
Overrides the basic hashcode function.
Returns if the address is the ANY Address
Returns whether this address has link-local scope. RFC 3484 Default Address Selection for Internet Protocol version 6 (IPv6) states IPv4 auto-configuration addresses, prefix 169.254/16, IPv4 loopback addresses, prefix 127/8, are assigned link-local scope.
Returns true if the address is a loopback address. Loopback ipv4 addresses are prefixed with: 011111111 = 127
Returns true if an address is a global multicast address. Valid MCGlobal IPv4 addresses are 224.0.1.0 - 238.255.255.255
Returns 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
Returns false for all IPv4 addresses. There are no valid IPv4 Node-local addresses
Returns true if the address is a organization-local address. The valid range for IPv4 org-local addresses is: 239.192.0.0 to 239.195.255.255 Hence masks of 11101111 11000000 to 11101111 11000011 are valid. 0xEFC0 to 0xEFC3
Returns 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.
Returns true if the address is a multicast address. Valid IPv4 multicast addresses are prefixed with 1110 = 0xE
Returns whether this address has site-local scope. RFC 3484 Default Address Selection for Internet Protocol version 6 (IPv6) states IPv4 private addresses, prefixes 10/8, 172.16/12, and 192.168/16, are assigned site-local scope.