Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for always (0.17 sec)

  1. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

          assertEquals(
              "Nothing should be logged", 0, aggregateFutureLogHandler.getStoredLogRecords().size());
        }
      }
    
      /** Ensure that errors are always logged. */
      public void testAllAsList_logging_error() throws Exception {
        try {
          getDone(allAsList(immediateFailedFuture(new MyError())));
          fail();
        } catch (ExecutionException expected) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

          assertEquals(
              "Nothing should be logged", 0, aggregateFutureLogHandler.getStoredLogRecords().size());
        }
      }
    
      /** Ensure that errors are always logged. */
      public void testAllAsList_logging_error() throws Exception {
        try {
          getDone(allAsList(immediateFailedFuture(new MyError())));
          fail();
        } catch (ExecutionException expected) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/cache/LocalCache.java

         * It will require more memory but will reduce indirection.
         */
    
        /*
         * Segments maintain a table of entry lists that are ALWAYS kept in a consistent state, so can
         * be read without locking. Next fields of nodes are immutable (final). All list additions are
         * performed at the front of each bin. This makes it easy to check changes, and also fast to
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/base/CharMatcherBenchmark.java

          list.set(list.indexOf(0), list.get(0));
          list.set(0, 0);
        }
        // Get threshold in the range [0, length], rounding up to ensure that
        // non-zero percent values result in a non-zero threshold (so we always
        // have at least one matching character).
        int threshold = ((percent * length) + 99) / 100;
        StringBuilder builder = new StringBuilder(length);
        for (int n = 0; n < length; n++) {
          builder.append(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 194.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/cache/LocalCache.java

         * It will require more memory but will reduce indirection.
         */
    
        /*
         * Segments maintain a table of entry lists that are ALWAYS kept in a consistent state, so can
         * be read without locking. Next fields of nodes are immutable (final). All list additions are
         * performed at the front of each bin. This makes it easy to check changes, and also fast to
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 144.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Maps.java

          // computed from that capacity. Because the internal table is only allocated on the first
          // write, we won't see copying because of the new threshold. So it is always OK to use the
          // calculation here.
          return (int) Math.ceil(expectedSize / 0.75);
        }
        return Integer.MAX_VALUE; // any large value
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 159.6K bytes
    - Viewed (0)
  7. android/guava-tests/benchmark/com/google/common/base/CharMatcherBenchmark.java

          list.set(list.indexOf(0), list.get(0));
          list.set(0, 0);
        }
        // Get threshold in the range [0, length], rounding up to ensure that
        // non-zero percent values result in a non-zero threshold (so we always
        // have at least one matching character).
        int threshold = ((percent * length) + 99) / 100;
        StringBuilder builder = new StringBuilder(length);
        for (int n = 0; n < length; n++) {
          builder.append(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 194.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

     * #from(ListenableFuture)} instead.
     *
     * <h3>Derived steps</h3>
     *
     * A {@code ClosingFuture} step can be derived from one or more input {@code ClosingFuture} steps in
     * ways similar to {@link FluentFuture}s:
     *
     * <ul>
     *   <li>by transforming the value from a successful input step,
     *   <li>by catching the exception from a failed input step, or
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 98.5K bytes
    - Viewed (0)
Back to top