Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for choice (0.15 sec)

  1. android/guava/src/com/google/common/util/concurrent/Futures.java

         * difference is that calling it with <Foo> won't work when an input Future has a @Nullable
         * type. So why even make that error possible by giving callers the choice?
         *
         * On the other hand, the current signature is consistent with the similar allAsList method. And
         * eventually this method may go away entirely in favor of an API like
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 59.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

          public void run() {
            thirdSignal.countDown();
            result.set(1, cache.getUnchecked(key));
            doneSignal.countDown();
          }
        }.start();
    
        // give the second get a chance to run; it is okay for this to be racy
        // as the end result should be the same either way
        thirdSignal.await();
        Thread.yield();
    
        // Expand!
        CacheTesting.forceExpandSegment(cache, key);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

          public void run() {
            thirdSignal.countDown();
            result.set(1, cache.getUnchecked(key));
            doneSignal.countDown();
          }
        }.start();
    
        // give the second get a chance to run; it is okay for this to be racy
        // as the end result should be the same either way
        thirdSignal.await();
        Thread.yield();
    
        // Expand!
        CacheTesting.forceExpandSegment(cache, key);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Sets.java

       * cartesian set is constructed, the input sets are merely copied. Only as the resulting set is
       * iterated are the individual lists created, and these are not retained after iteration.
       *
       * @param sets the sets to choose elements from, in the order that the elements chosen from those
       *     sets should appear in the resulting lists
       * @param <B> any common base class shared by all axes (often just {@link Object})
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

       */
      // TODO(fry): empirically optimize this
      static final int DRAIN_MAX = 16;
    
      // Fields
    
      /**
       * Mask value for indexing into segments. The upper bits of a key's hash code are used to choose
       * the segment.
       */
      final transient int segmentMask;
    
      /**
       * Shift value for indexing within segments. Helps prevent entries that end up in the same segment
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
  6. guava/src/com/google/common/cache/CacheBuilder.java

       * without contention. Because assignment of entries to these partitions is not necessarily
       * uniform, the actual concurrency observed may vary. Ideally, you should choose a value to
       * accommodate as many threads as will ever concurrently modify the table. Using a significantly
       * higher value than you need can waste space and time, and a significantly lower value can lead
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 51.3K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/Iterators.java

       * returned to the caller, although this is neither guaranteed to occur nor required to be
       * consistent. For example, this method <i>might</i> choose to pass through recognized
       * implementations of {@code PeekingIterator} when the behavior of the implementation is known to
       * meet the contract guaranteed by this method.
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jan 30 00:14:39 GMT 2024
    - 50.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Iterators.java

       * returned to the caller, although this is neither guaranteed to occur nor required to be
       * consistent. For example, this method <i>might</i> choose to pass through recognized
       * implementations of {@code PeekingIterator} when the behavior of the implementation is known to
       * meet the contract guaranteed by this method.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 51.1K bytes
    - Viewed (0)
Back to top