Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 186 for reorder (0.22 sec)

  1. android/guava-tests/test/com/google/common/cache/CacheExpirationTest.java

        // reorder
        getAll(cache, asList(0, 1, 2));
        CacheTesting.drainRecencyQueues(cache);
        ticker.advance(2, MILLISECONDS);
        assertThat(keySet).containsExactly(3, 4, 5, 6, 7, 8, 9, 0, 1, 2);
    
        // 3 expires
        ticker.advance(1, MILLISECONDS);
        assertThat(keySet).containsExactly(4, 5, 6, 7, 8, 9, 0, 1, 2);
    
        // reorder
        getAll(cache, asList(5, 7, 9));
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Aug 05 17:21:46 GMT 2022
    - 18.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/CacheExpirationTest.java

        // reorder
        getAll(cache, asList(0, 1, 2));
        CacheTesting.drainRecencyQueues(cache);
        ticker.advance(2, MILLISECONDS);
        assertThat(keySet).containsExactly(3, 4, 5, 6, 7, 8, 9, 0, 1, 2);
    
        // 3 expires
        ticker.advance(1, MILLISECONDS);
        assertThat(keySet).containsExactly(4, 5, 6, 7, 8, 9, 0, 1, 2);
    
        // reorder
        getAll(cache, asList(5, 7, 9));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Aug 05 17:21:46 GMT 2022
    - 18.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/cache/Striped64.java

       * needed again; and for short-lived ones, it does not matter.
       */
    
      /**
       * Padded variant of AtomicLong supporting only raw accesses plus CAS. The value field is placed
       * between pads, hoping that the JVM doesn't reorder them.
       *
       * <p>JVM intrinsics note: It would be possible to use a release-only form of CAS here, if it were
       * provided.
       */
      static final class Cell {
        volatile long p0, p1, p2, p3, p4, p5, p6;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/cache/Striped64.java

       * needed again; and for short-lived ones, it does not matter.
       */
    
      /**
       * Padded variant of AtomicLong supporting only raw accesses plus CAS. The value field is placed
       * between pads, hoping that the JVM doesn't reorder them.
       *
       * <p>JVM intrinsics note: It would be possible to use a release-only form of CAS here, if it were
       * provided.
       */
      static final class Cell {
        volatile long p0, p1, p2, p3, p4, p5, p6;
    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. android/guava/src/com/google/common/math/Quantiles.java

         *     be arbitrarily reordered by this method call
         * @return an unmodifiable, ordered map of results: the keys will be the specified quantile
         *     indexes, and the values the corresponding quantile values. When iterating, entries in the
         *     map are ordered by quantile index in the same order that the indexes were passed to the
         *     {@code indexes} method.
         */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 29.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

              K[] sortedKs = (K[]) sortedKeys;
              Arrays.sort(sortedKs, comparator);
              Object[] sortedValues = new Object[size];
    
              // We might, somehow, be able to reorder values in-place.  But it doesn't seem like
              // there's a way around creating the separate sortedKeys array, and if we're allocating
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 52.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/eventbus/ReentrantEventsTest.java

        EventProcessor processor = new EventProcessor();
        bus.register(processor);
    
        EventRecorder recorder = new EventRecorder();
        bus.register(recorder);
    
        bus.post(FIRST);
    
        assertEquals(
            "EventRecorder expected events in order",
            Lists.<Object>newArrayList(FIRST, SECOND),
            recorder.eventsReceived);
      }
    
      public class EventProcessor {
        @Subscribe
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/hash/FunnelsTest.java

        sequential.funnel(Arrays.asList("foo", "bar", "baz", "quux"), primitiveSink);
        InOrder inOrder = inOrder(elementFunnel);
        inOrder.verify(elementFunnel).funnel("foo", primitiveSink);
        inOrder.verify(elementFunnel).funnel("bar", primitiveSink);
        inOrder.verify(elementFunnel).funnel("baz", primitiveSink);
        inOrder.verify(elementFunnel).funnel("quux", primitiveSink);
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 02 16:24:50 GMT 2020
    - 5.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/TreeRangeSetTest.java

                .containsExactlyElementsIn(expected.headMap(key, inclusive).entrySet())
                .inOrder();
            assertThat(navigableMap.tailMap(key, inclusive).entrySet())
                .containsExactlyElementsIn(expected.tailMap(key, inclusive).entrySet())
                .inOrder();
            assertThat(navigableMap.headMap(key, inclusive).descendingMap().entrySet())
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 16 19:54:45 GMT 2020
    - 24.3K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/TreeMultimapExplicitTest.java

        assertThat(tree.keySet()).containsExactly("tree", "google").inOrder();
        assertThat(tree.get("google")).containsExactly(6, 2).inOrder();
    
        TreeMultimap<String, Integer> copy = TreeMultimap.create(tree);
        assertEquals(tree, copy);
        assertThat(copy.keySet()).containsExactly("google", "tree").inOrder();
        assertThat(copy.get("google")).containsExactly(2, 6).inOrder();
        assertEquals(Ordering.natural(), copy.keyComparator());
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 8.3K bytes
    - Viewed (0)
Back to top