@Test(dataProvider = "IpAddresses") public void testLongToIpString(String expectedIpAddress, long value) { String out = IpHelper.longToIpString(value); assertThat(out, is(equalTo(expectedIpAddress))); }
public static String longToIpString(long ip) { InetAddress ipAddress = longToIp(ip); return ipAddress.getHostAddress(); }
IpHelper { public static String longToIpString(long ip) { InetAddress ipAddress = longToIp(ip); return ipAddress.getHostAddress(); } }
IpHelper { public static String longToIpString(long ip) { InetAddress ipAddress = longToIp(ip); return ipAddress.getHostAddress(); }  }
IpHelper { public static String longToIpString(long ip) { InetAddress ipAddress = longToIp(ip); return ipAddress.getHostAddress(); }  static long ipToLong(Inet4Address ip); static InetAddress longToIp(long ip); static String longToIpString(long ip); static long ipStringToLong(String ip); static byte[] longToNetworkByteOrderArray(long addr); static String calculateCidrFromIpV4Range(long ipLow, long ipHigh); static InetAddress calculateNetmaskFromCidr(String cidr); static String calculateNetmaskStringFromCidr(String cidr); static int safeLongToInt(long l); }
IpHelper { public static String longToIpString(long ip) { InetAddress ipAddress = longToIp(ip); return ipAddress.getHostAddress(); }  static long ipToLong(Inet4Address ip); static InetAddress longToIp(long ip); static String longToIpString(long ip); static long ipStringToLong(String ip); static byte[] longToNetworkByteOrderArray(long addr); static String calculateCidrFromIpV4Range(long ipLow, long ipHigh); static InetAddress calculateNetmaskFromCidr(String cidr); static String calculateNetmaskStringFromCidr(String cidr); static int safeLongToInt(long l);  }