I have a question about Guava's InetAddress.coerceToInteger method.
According to docs the method:
public static int coerceToInteger(InetAddress ip)
'Returns an integer representing an IPv4 address regardless of whether the supplied argument is an IPv4 address or not. '
But, IPv4 range is of an unsigned 32 bit while Java's int is a signed one - means the returned value can only cover half of the relevant range of IPv4.
Am I missing someone or there is a real problem in the method?
Thanks