Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for coerceToInteger (0.08 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. android/guava/src/com/google/common/net/InetAddresses.java

       * @since 7.0
       */
      public static int coerceToInteger(InetAddress ip) {
        return ByteStreams.newDataInput(getCoercedIPv4Address(ip).getAddress()).readInt();
      }
    
      /**
       * Returns a BigInteger representing the address.
       *
       * <p>Unlike {@code coerceToInteger}, IPv6 addresses are not coerced to IPv4 addresses.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 47.7K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/net/InetAddressesTest.java

        int coercedInt =
            InetAddresses.coerceToInteger(
                InetAddresses.getCoercedIPv4Address(InetAddresses.forString("2001:4860::1")));
        assertThat(coercedInt).isAtLeast(0xe0000000);
        assertThat(coercedInt).isAtMost(0xfffffffe);
      }
    
      public void testCoerceToInteger() {
        assertThat(InetAddresses.coerceToInteger(InetAddresses.forString("127.0.0.1")))
            .isEqualTo(0x7f000001);
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 16:38:16 GMT 2026
    - 36.3K bytes
    - Click Count (0)
Back to Top