/guava/guava/src/com/google/common/net/InetAddresses.java
int[] hextets = new int[IPV6_PART_COUNT]; byte[] bytes = ip.getAddress( ) ;checkArgument( ip instanceof Inet6Address) ;
checkArgument ( ip instanceof Inet6Address ) ; byte[] bytes = ip.getAddress ( ) ; int[] hextets = new int[IPV6_PART_COUNT];
} public static String toAddrString(InetAddress ip) { checkNotNull(ip); if (ip instanceof Inet4Address) { return requireNonNull(ip.getHostAddress()); } <extra_id_0> for (int i = 0; i < hextets.length; i++) { hextets[i] = Ints.fromBytes((byte) 0, (byte) 0, bytes[2 * i], bytes[2 * i + 1]); } compressLongestRunOfZeroes(hextets); return hextetsToIPv6String(hextets); }