Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 168 for raised (0.19 sec)

  1. android/guava-tests/benchmark/com/google/common/cache/LoadingCacheSingleThreadBenchmark.java

      int max;
    
      static AtomicLong requests = new AtomicLong(0);
      static AtomicLong misses = new AtomicLong(0);
    
      @BeforeExperiment
      void setUp() {
        // random integers will be generated in this range, then raised to the
        // power of (1/concentration) and floor()ed
        max = Ints.checkedCast((long) Math.pow(distinctKeys, concentration));
    
        cache =
            CacheBuilder.newBuilder()
                .concurrencyLevel(segments)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/UnsignedLongsTest.java

            .isEqualTo(0x6cf78a4b139a4e2aL);
      }
    
      public void testParseLongEmptyString() {
        try {
          UnsignedLongs.parseUnsignedLong("");
          fail("NumberFormatException should have been raised.");
        } catch (NumberFormatException expected) {
        }
      }
    
      public void testParseLongFails() {
        try {
          // One more than maximum value
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:36:17 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/cache/LoadingCacheSingleThreadBenchmark.java

      int max;
    
      static AtomicLong requests = new AtomicLong(0);
      static AtomicLong misses = new AtomicLong(0);
    
      @BeforeExperiment
      void setUp() {
        // random integers will be generated in this range, then raised to the
        // power of (1/concentration) and floor()ed
        max = Ints.checkedCast((long) Math.pow(distinctKeys, concentration));
    
        cache =
            CacheBuilder.newBuilder()
                .concurrencyLevel(segments)
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/primitives/UnsignedLongsTest.java

            .isEqualTo(0x6cf78a4b139a4e2aL);
      }
    
      public void testParseLongEmptyString() {
        try {
          UnsignedLongs.parseUnsignedLong("");
          fail("NumberFormatException should have been raised.");
        } catch (NumberFormatException expected) {
        }
      }
    
      public void testParseLongFails() {
        try {
          // One more than maximum value
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:36:17 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/reflect/TypeVisitor.java

     *   }
     * }.visit(type);
     * }</pre>
     *
     * <p>One {@code Type} is visited at most once. The second time the same type is visited, it's
     * ignored by {@link #visit}. This avoids infinite recursion caused by recursive type bounds.
     *
     * <p>This class is not thread safe.
     *
     * @author Ben Yu
     */
    @ElementTypesAreNonnullByDefault
    abstract class TypeVisitor {
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Apr 16 21:10:04 GMT 2021
    - 3.7K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

                    new AssertionFailedError("Null check failed on return value of " + factory);
                error.initCause(e);
                throw error;
              }
            }
          }
          return this;
        }
    
        /**
         * Tests {@link Object#equals} and {@link Object#hashCode} against the return values of the
         * static methods, by asserting that when equal parameters are passed to the same static method,
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 33K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/FuturesGetUncheckedTest.java

    import static com.google.common.util.concurrent.FuturesGetCheckedInputs.FAILED_FUTURE_CHECKED_EXCEPTION;
    import static com.google.common.util.concurrent.FuturesGetCheckedInputs.FAILED_FUTURE_ERROR;
    import static com.google.common.util.concurrent.FuturesGetCheckedInputs.FAILED_FUTURE_OTHER_THROWABLE;
    import static com.google.common.util.concurrent.FuturesGetCheckedInputs.FAILED_FUTURE_UNCHECKED_EXCEPTION;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/AbstractIterator.java

      }
    
      @Override
      public final boolean hasNext() {
        checkState(state != State.FAILED);
        switch (state) {
          case DONE:
            return false;
          case READY:
            return true;
          default:
        }
        return tryToComputeNext();
      }
    
      private boolean tryToComputeNext() {
        state = State.FAILED; // temporary pessimism
        next = computeNext();
        if (state != State.DONE) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Mar 18 02:04:10 GMT 2022
    - 6.4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/ListeningScheduledExecutorServiceTest.java

          recordedDelay = delay;
          recordedTimeUnit = unit;
          try {
            return ImmediateScheduledFuture.of(callable.call());
          } catch (Exception e) {
            return ImmediateScheduledFuture.failed(e);
          }
        }
    
        @Override
        public ListenableScheduledFuture<?> scheduleAtFixedRate(
            Runnable command, long initialDelay, long period, TimeUnit unit) {
          recordedCommand = command;
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Mar 17 20:45:59 GMT 2020
    - 6.1K bytes
    - Viewed (0)
  10. guava/src/com/google/common/annotations/VisibleForTesting.java

     * representation will be hard to change. Instead, use <a
     * href="http://errorprone.info/bugpattern/RestrictedApi">RestrictedApiChecker</a>, which enforces
     * fine-grained visibility policies.
     *
     * @author Johannes Henkel
     */
    @GwtCompatible
    public @interface VisibleForTesting {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Jan 30 22:25:16 GMT 2023
    - 1.3K bytes
    - Viewed (0)
Back to top