Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for fromIPv4BigInteger (0.09 sec)

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

      }
    
      public void testFromIpv4BigIntegerThrowsLessThanZero() {
        IllegalArgumentException expected =
            assertThrows(
                IllegalArgumentException.class,
                () -> InetAddresses.fromIPv4BigInteger(BigInteger.valueOf(-1L)));
        assertEquals("BigInteger must be greater than or equal to 0", expected.getMessage());
      }
    
      public void testFromIpv6BigIntegerThrowsLessThanZero() {
    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 Inet4Address representation of the given BigInteger
       * @throws IllegalArgumentException if the BigInteger is not between 0 and 2^32-1
       * @since 28.2
       */
      public static Inet4Address fromIPv4BigInteger(BigInteger address) {
        return (Inet4Address) fromBigInteger(address, false);
      }
      /**
       * Returns the {@code Inet6Address} corresponding to a given {@code BigInteger}.
       *
    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 Inet4Address representation of the given BigInteger
       * @throws IllegalArgumentException if the BigInteger is not between 0 and 2^32-1
       * @since 28.2
       */
      public static Inet4Address fromIPv4BigInteger(BigInteger address) {
        return (Inet4Address) fromBigInteger(address, false);
      }
      /**
       * Returns the {@code Inet6Address} corresponding to a given {@code BigInteger}.
       *
    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