Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 80 for clarin (0.39 sec)

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

        firstException = expected;
        // Second time should also fail, with a cached causal chain.
        expected = assertThrows(PotentialDeadlockException.class, () -> lockA.lock());
        checkMessage(expected, "LockB -> LockA", "LockA -> LockB");
        // The causal chain should be cached.
        assertSame(firstException.getCause(), expected.getCause());
        // lockA should work after lockB is released.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.1K bytes
    - Viewed (1)
  2. android/guava/src/com/google/common/util/concurrent/JdkFutureAdapters.java

    import java.util.concurrent.ThreadFactory;
    import java.util.concurrent.atomic.AtomicBoolean;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Utilities necessary for working with libraries that supply plain {@link Future} instances. Note
     * that, whenever possible, it is strongly preferred to modify those libraries to return {@code
     * ListenableFuture} directly.
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/CompactHashSet.java

       * part of the smeared hash of the element not covered by the hashtable mask, whereas the low bits
       * are the "next" pointer (pointing to the next entry in the bucket chain), which will always be
       * less than or equal to the hashtable mask.
       *
       * <pre>
       * hash  = aaaaaaaa
       * mask  = 00000fff
       * next  = 00000bbb
       * entry = aaaaabbb
       * </pre>
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 24.9K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/CompactHashMap.java

       * part of the smeared hash of the key not covered by the hashtable mask, whereas the low bits are
       * the "next" pointer (pointing to the next entry in the bucket chain), which will always be less
       * than or equal to the hashtable mask.
       *
       * <pre>
       * hash  = aaaaaaaa
       * mask  = 00000fff
       * next  = 00000bbb
       * entry = aaaaabbb
       * </pre>
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 39.8K bytes
    - Viewed (0)
  5. guava-tests/benchmark/com/google/common/cache/ChainBenchmark.java

          // held
          chain = segment.newEntry(key, cache.hash(key), chain);
          if (i == 0) {
            head = chain;
          }
        }
      }
    
      @SuppressWarnings("GuardedBy")
      @Benchmark
      int time(int reps) {
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
          // TODO(b/145386688): This access should be guarded by 'this.segment', which is not currently
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 15:19:38 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ComparisonChain.java

       * already been determined.
       */
      public abstract <T extends @Nullable Object> ComparisonChain compare(
          @ParametricNullness T left, @ParametricNullness T right, Comparator<T> comparator);
    
      /**
       * Compares two {@code int} values as specified by {@link Ints#compare}, <i>if</i> the result of
       * this comparison chain has not already been determined.
       */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Sep 21 17:28:11 GMT 2022
    - 11.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/base/Throwables.java

      }
    
      /**
       * Gets a {@code Throwable} cause chain as a list. The first entry in the list will be {@code
       * throwable} followed by its cause hierarchy. Note that this is a snapshot of the cause chain and
       * will not reflect any subsequent changes to the cause chain.
       *
       * <p>Here's an example of how it can be used to find specific types of exceptions in the cause
       * chain:
       *
       * <pre>
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Mar 06 15:38:58 GMT 2024
    - 20.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/Throwables.java

      }
    
      /**
       * Gets a {@code Throwable} cause chain as a list. The first entry in the list will be {@code
       * throwable} followed by its cause hierarchy. Note that this is a snapshot of the cause chain and
       * will not reflect any subsequent changes to the cause chain.
       *
       * <p>Here's an example of how it can be used to find specific types of exceptions in the cause
       * chain:
       *
       * <pre>
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Mar 06 15:38:58 GMT 2024
    - 20.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/FuturesTransformAsyncTest.java

      public void testFutureGetThrowsRuntimeException() throws Exception {
        BadFuture badInput = new BadFuture(Futures.immediateFuture(20));
        ListenableFuture<String> chain = buildChainingFuture(badInput);
        ExecutionException e = assertThrows(ExecutionException.class, () -> chain.get());
        assertSame(RuntimeException.class, e.getCause().getClass());
      }
    
      /** Proxy to throw a {@link RuntimeException} out of the {@link #get()} method. */
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

     * Benchmarks (as of December 2011) show that:
     *
     * <ul>
     *   <li>for an unnested {@code lock()} and {@code unlock()}, a cycle detecting lock takes 38ns as
     *       opposed to the 24ns taken by a plain lock.
     *   <li>for nested locking, the cost increases with the depth of the nesting:
     *       <ul>
     *         <li>2 levels: average of 64ns per lock()/unlock()
     *         <li>3 levels: average of 77ns per lock()/unlock()
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 35.9K bytes
    - Viewed (0)
Back to top