Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 23 of 23 for setCity (0.21 sec)

  1. guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

        for (long value : TEST_LONGS) {
          BigInteger expected =
              (value >= 0)
                  ? BigInteger.valueOf(value)
                  : BigInteger.valueOf(value).add(BigInteger.ZERO.setBit(64));
          assertWithMessage(UnsignedLongs.toString(value))
              .that(UnsignedLong.fromLongBits(value).bigIntegerValue())
              .isEqualTo(expected);
        }
      }
    
      public void testValueOfLong() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/math/MathBenchmarking.java

        int digits = RANDOM_SOURCE.nextInt(numBits);
        if (digits == 0) {
          return new BigInteger(1, RANDOM_SOURCE);
        } else {
          return new BigInteger(digits, RANDOM_SOURCE).setBit(digits);
        }
      }
    
      /**
       * Equivalent to calling randomPositiveBigInteger(numBits) and then flipping the sign with 50%
       * probability.
       */
      static BigInteger randomNonZeroBigInteger(int numBits) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/math/LongMathTest.java

        }
      }
    
      @GwtIncompatible // TODO
      public void testConstantMaxPowerOfSqrt2Unsigned() {
        assertEquals(
            /*expected=*/ BigIntegerMath.sqrt(BigInteger.ZERO.setBit(2 * Long.SIZE - 1), FLOOR)
                .longValue(),
            /*actual=*/ LongMath.MAX_POWER_OF_SQRT2_UNSIGNED);
      }
    
      @GwtIncompatible // BigIntegerMath // TODO(cpovirk): GWT-enable BigIntegerMath
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 20:15:57 GMT 2024
    - 32.5K bytes
    - Viewed (0)
Back to top