Returns an integer representing an IPv4 address regardless of whether the supplied argument is an IPv4 address or not. IPv6 addresses are coerced to IPv4 addresses before being converted to integers. As long as there are applications that assume that all IP addresses are IPv4 addresse
(InetAddress ip)
| 913 | |
| 914 | |
| 915 | public static int coerceToInteger(InetAddress ip) { |
| 916 | return ByteStreams.newDataInput(getCoercedIPv4Address(ip).getAddress()).readInt(); |
| 917 | } |
| 918 | |
| 919 | /** |
| 920 | * Returns an Inet4Address having the integer value specified by the argument. |
nothing calls this directly
no test coverage detected