MCPcopy Index your code
hub / github.com/antlr/codebuff / coerceToInteger

Method coerceToInteger

output/java_guava/1.4.16/InetAddresses.java:915–917  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 3

newDataInputMethod · 0.95
getCoercedIPv4AddressMethod · 0.95
readIntMethod · 0.65

Tested by

no test coverage detected