Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 322 for Chen (0.16 sec)

  1. guava/src/com/google/common/cache/LocalCache.java

         * make sure they see a consistent snapshot: If modCounts change during a traversal of segments
         * loading size or checking containsValue, then we might have an inconsistent view of state so
         * (usually) must retry.
         */
        int modCount;
    
        /**
         * The table is expanded when its size exceeds this threshold. (The value of this field is
         * always {@code (int) (capacity * 0.75)}.)
         */
        int threshold;
    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)
  2. android/guava/src/com/google/common/collect/TopKSelector.java

     * k). In benchmarks, this implementation performs at least as well as either implementation, and
     * degrades more gracefully for worst-case input.
     *
     * <p>The implementation does not necessarily use a <i>stable</i> sorting algorithm; when multiple
     * equivalent elements are added to it, it is undefined which will come first in the output.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    final class TopKSelector<
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

      /**
       * Creates a new {@code ConcurrentHashMultiset} containing the specified elements, using the
       * default initial capacity, load factor, and concurrency settings.
       *
       * <p>This implementation is highly efficient when {@code elements} is itself a {@link Multiset}.
       *
       * @param elements the elements that the multiset should contain
       */
      public static <E> ConcurrentHashMultiset<E> create(Iterable<? extends E> elements) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 20.9K bytes
    - Viewed (0)
  4. guava/src/com/google/common/cache/Striped64.java

      /** Table of cells. When non-null, size is a power of 2. */
      @CheckForNull transient volatile Cell[] cells;
    
      /**
       * Base value, used mainly when there is no contention, but also as a fallback during table
       * initialization races. Updated via CAS.
       */
      transient volatile long base;
    
      /** Spinlock (locked via CAS) used when resizing and/or creating Cells. */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

       * then we call it in a separate thread (using pseudoTimedGet). The result is that we wait as long
       * as necessary when the method is expected to return (at the cost of hanging forever if there is
       * a bug in the class under test) but that we time out fairly promptly when the method is 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)
  6. guava/src/com/google/common/collect/ImmutableSet.java

         * e.g. hash codes adversarially designed to go into ascending table locations, which keeps
         * construction O(n) (as desired) but then can have O(n) queries later.
         *
         * <p>If this returns false, then no query can take more than O(log n).
         *
         * <p>Note that for a RegularImmutableSet with elements with truly random hash codes, contains
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 35.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/AbstractTransformFuture.java

         *
         * - If the stack overflowed before set()/setValue() could even store the result in the output
         * Future, then a call setException() would likely also overflow.
         *
         * - If the stack overflowed after set()/setValue() stored its result, then a call to
         * setException() will be a no-op because the Future is already done.
         *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        Iterator<Integer> it = mmHeap.iterator();
        assertTrue("Iterator has reached end prematurely", it.hasNext());
        it.next();
        it.next();
        try {
          it.next();
          fail("No exception thrown when iterating past end of heap");
        } catch (NoSuchElementException expected) {
        }
      }
    
      public void testIteratorConcurrentModification() {
        MinMaxPriorityQueue<Integer> mmHeap = MinMaxPriorityQueue.create();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/graph/InvalidatableSetTest.java

        // sanity check on construction of copyOfModifiedSet
        assertThat(wrappedSet).isEqualTo(copyOfModifiedSet);
    
        // setToTest should throw when it calls equals(), or equals is called on it, except for itself
        assertThat(setToTest).isEqualTo(setToTest);
        assertThrows(IllegalStateException.class, () -> setToTest.equals(wrappedSet));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/graph/InvalidatableSetTest.java

        // sanity check on construction of copyOfModifiedSet
        assertThat(wrappedSet).isEqualTo(copyOfModifiedSet);
    
        // setToTest should throw when it calls equals(), or equals is called on it, except for itself
        assertThat(setToTest).isEqualTo(setToTest);
        assertThrows(IllegalStateException.class, () -> setToTest.equals(wrappedSet));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 2.2K bytes
    - Viewed (0)
Back to top