Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 63 for longval2 (0.12 sec)

  1. android/guava-tests/test/com/google/common/base/ConverterTest.java

            }
          };
    
      private static final Long LONG_VAL = 12345L;
      private static final String STR_VAL = "12345";
    
      private static final ImmutableList<String> STRINGS = ImmutableList.of("123", "456");
      private static final ImmutableList<Long> LONGS = ImmutableList.of(123L, 456L);
    
      public void testConverter() {
        assertEquals(LONG_VAL, STR_TO_LONG.convert(STR_VAL));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 01 16:09:28 UTC 2024
    - 8K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

            UnsignedLong bUnsigned = UnsignedLong.fromLongBits(b);
            long expected = aUnsigned.bigIntegerValue().add(bUnsigned.bigIntegerValue()).longValue();
            UnsignedLong unsignedSum = aUnsigned.plus(bUnsigned);
            assertThat(unsignedSum.longValue()).isEqualTo(expected);
          }
        }
      }
    
      public void testMinus() {
        for (long a : TEST_LONGS) {
          for (long b : TEST_LONGS) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

            UnsignedLong bUnsigned = UnsignedLong.fromLongBits(b);
            long expected = aUnsigned.bigIntegerValue().add(bUnsigned.bigIntegerValue()).longValue();
            UnsignedLong unsignedSum = aUnsigned.plus(bUnsigned);
            assertThat(unsignedSum.longValue()).isEqualTo(expected);
          }
        }
      }
    
      public void testMinus() {
        for (long a : TEST_LONGS) {
          for (long b : TEST_LONGS) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/math/LongMathTest.java

          for (int i = 0; i < 100; i++) {
            long p = BigInteger.probablePrime(bits, rand).longValue();
            long q = BigInteger.probablePrime(bits, rand).longValue();
            assertFalse(LongMath.isPrime(p * q));
          }
        }
      }
    
      @GwtIncompatible // isPrime is GWT-incompatible
      public void testIsPrimeThrowsOnNegative() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/util/concurrent/AtomicLongMap.java

        checkNotNull(updaterFunction);
        Long result =
            map.compute(
                key,
                (k, value) -> updaterFunction.applyAsLong((value == null) ? 0L : value.longValue()));
        return requireNonNull(result);
      }
    
      /**
       * Updates the value currently associated with {@code key} with the specified function, and
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  6. android/guava-tests/benchmark/com/google/common/math/ApacheBenchmark.java

          }
          do {
            for (int j = 0; j < 2; j++) {
              intsToAdd[i][j] = randomBigInteger(Integer.SIZE - 2).intValue();
            }
          } while (!Impl.GUAVA.noAddOverflow(intsToAdd[i][0], intsToAdd[i][1]));
          do {
            for (int j = 0; j < 2; j++) {
              longsToAdd[i][j] = randomBigInteger(Long.SIZE - 2).longValue();
            }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 6.9K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/service/AccessTokenService.java

                    final Set<String> permissionSet = new HashSet<>();
                    final Long expiredTime = accessToken.getExpiredTime();
                    if (expiredTime != null && expiredTime.longValue() > 0
                            && expiredTime.longValue() < ComponentUtil.getSystemHelper().getCurrentTimeAsLong()) {
                        throw new InvalidAccessTokenException("invalid_token",
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  8. guava-tests/benchmark/com/google/common/math/LongMathBenchmark.java

      @BeforeExperiment
      void setUp() {
        for (int i = 0; i < ARRAY_SIZE; i++) {
          exponents[i] = randomExponent();
          positive[i] = randomPositiveBigInteger(Long.SIZE - 1).longValue();
          nonnegative[i] = randomNonNegativeBigInteger(Long.SIZE - 1).longValue();
          longs[i] = RANDOM_SOURCE.nextLong();
          factorialArguments[i] = RANDOM_SOURCE.nextInt(30);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/primitives/UnsignedInteger.java

      @Override
      public long longValue() {
        return toLong(value);
      }
    
      /**
       * Returns the value of this {@code UnsignedInteger} as a {@code float}, analogous to a widening
       * primitive conversion from {@code int} to {@code float}, and correctly rounded.
       */
      @Override
      public float floatValue() {
        return longValue();
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 23 18:45:50 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/primitives/UnsignedInteger.java

      @Override
      public long longValue() {
        return toLong(value);
      }
    
      /**
       * Returns the value of this {@code UnsignedInteger} as a {@code float}, analogous to a widening
       * primitive conversion from {@code int} to {@code float}, and correctly rounded.
       */
      @Override
      public float floatValue() {
        return longValue();
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 23 18:45:50 UTC 2023
    - 8.3K bytes
    - Viewed (0)
Back to top