Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for fromIPv6BigInteger (0.11 sec)

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

      }
    
      public void testFromIpv6BigIntegerThrowsLessThanZero() {
        IllegalArgumentException expected =
            assertThrows(
                IllegalArgumentException.class,
                () -> InetAddresses.fromIPv6BigInteger(BigInteger.valueOf(-1L)));
        assertEquals("BigInteger must be greater than or equal to 0", expected.getMessage());
      }
    
      public void testFromIpv4BigIntegerValid() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 24 16:44:05 UTC 2024
    - 35.3K bytes
    - Viewed (0)
  2. 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
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  3. 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
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 47.1K bytes
    - Viewed (0)
Back to top