- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for getCoercedIPv4Address (0.17 sec)
-
guava-tests/test/com/google/common/net/InetAddressesTest.java
assertThat(InetAddresses.getCoercedIPv4Address(InetAddresses.forString("127.0.0.1"))) .isEqualTo(InetAddresses.forString("127.0.0.1")); // ::1 special case assertThat(InetAddresses.getCoercedIPv4Address(InetAddresses.forString("::1"))) .isEqualTo(InetAddresses.forString("127.0.0.1")); // :: special case assertThat(InetAddresses.getCoercedIPv4Address(InetAddresses.forString("::")))
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri May 24 16:44:05 UTC 2024 - 35.3K bytes - Viewed (0) -
guava/src/com/google/common/net/InetAddresses.java
* * @param ip {@link InetAddress} to "coerce" * @return {@link Inet4Address} represented "coerced" address * @since 7.0 */ public static Inet4Address getCoercedIPv4Address(InetAddress ip) { if (ip instanceof Inet4Address) { return (Inet4Address) ip; } // Special cases: byte[] bytes = ip.getAddress(); boolean leadingBytesOfZero = true;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 47.1K bytes - Viewed (0) -
android/guava/src/com/google/common/net/InetAddresses.java
* * @param ip {@link InetAddress} to "coerce" * @return {@link Inet4Address} represented "coerced" address * @since 7.0 */ public static Inet4Address getCoercedIPv4Address(InetAddress ip) { if (ip instanceof Inet4Address) { return (Inet4Address) ip; } // Special cases: byte[] bytes = ip.getAddress(); boolean leadingBytesOfZero = true;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 47.1K bytes - Viewed (0)