Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 127 for reorder (0.27 sec)

  1. 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 May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  2. 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)
  3. android/guava/src/com/google/common/hash/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. 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 May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  5. 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 May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java

        assertThat(multimap.keySet()).containsExactly("d", "c", "b", "a").inOrder();
        assertThat(multimap.values()).containsExactly(2, 4, 3, 6, 5, 2).inOrder();
        assertThat(multimap.get("a")).containsExactly(5, 2).inOrder();
        assertThat(multimap.get("b")).containsExactly(3, 6).inOrder();
        assertFalse(multimap.get("a") instanceof ImmutableSortedSet);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 23.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

        assertThat(multimap.keySet()).containsExactly("d", "c", "b", "a").inOrder();
        assertThat(multimap.values()).containsExactly(2, 4, 3, 6, 5, 2).inOrder();
        assertThat(multimap.get("a")).containsExactly(5, 2).inOrder();
        assertThat(multimap.get("b")).containsExactly(3, 6).inOrder();
      }
    
      public void testBuilderOrderKeysByDuplicates() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/HashBasedTableTest.java

          table.put("r" + i, "c" + i, "v" + i);
        }
        assertThat(table.rowKeySet()).containsExactly("r0", "r1", "r2", "r3", "r4").inOrder();
        assertThat(table.columnKeySet()).containsExactly("c0", "c1", "c2", "c3", "c4").inOrder();
        assertThat(table.values()).containsExactly("v0", "v1", "v2", "v3", "v4").inOrder();
      }
    
      public void testCreateWithValidSizes() {
        Table<String, Integer, Character> table1 = HashBasedTable.create(100, 20);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/SetsTest.java

        assertThat(Sets.cartesianProduct(set(1), set(2, 3)))
            .containsExactly(list(1, 2), list(1, 3))
            .inOrder();
      }
    
      public void testCartesianProduct_binary2x2() {
        assertThat(Sets.cartesianProduct(set(1, 2), set(3, 4)))
            .containsExactly(list(1, 3), list(1, 4), list(2, 3), list(2, 4))
            .inOrder();
      }
    
      public void testCartesianProduct_2x2x2() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/base/OptionalTest.java

      }
    
      public void testPresentInstances_callingIteratorTwice() {
        List<Optional<String>> optionals =
            ImmutableList.of(Optional.of("a"), Optional.<String>absent(), Optional.of("c"));
        Iterable<String> onlyPresent = Optional.presentInstances(optionals);
        assertThat(onlyPresent).containsExactly("a", "c").inOrder();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.2K bytes
    - Viewed (0)
Back to top