Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for fromIPv6BigInteger (0.24 seconds)

  1. guava-tests/test/com/google/common/net/InetAddressesTest.java

      }
    
      public void testFromIpv6BigIntegerThrowsLessThanZero() {
        IllegalArgumentException expected =
            assertThrows(
                IllegalArgumentException.class,
                () -> InetAddresses.fromIPv6BigInteger(BigInteger.valueOf(-1L)));
        assertThat(expected)
            .hasMessageThat()
            .isEqualTo("BigInteger must be greater than or equal to 0");
      }
    
      public void testFromIpv4BigIntegerValid() {
    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)
  2. android/guava/src/com/google/common/net/InetAddresses.java

       * @return Inet6Address representation of the given BigInteger
       * @throws IllegalArgumentException if the BigInteger is not between 0 and 2^128-1
       * @since 28.2
       */
      public static Inet6Address fromIPv6BigInteger(BigInteger address) {
        return (Inet6Address) fromBigInteger(address, true);
      }
    
      /**
       * Converts a BigInteger to either an IPv4 or IPv6 address. If the IP is IPv4, it must be
    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)
Back to Top