Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 158 for contenu (0.16 sec)

  1. guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

        assertEquals(liveCount, countLiveEntries(map));
        ImmutableMap<Object, Object> originalMap = ImmutableMap.copyOf(map);
        assertEquals(liveCount, originalMap.size());
        // can't compare map contents until cleanup occurs
    
        for (int i = 1; i <= originalCount * 2; i *= 2) {
          if (i > 1) {
            // TODO(b/145386688): This access should be guarded by 'segment', which is not currently
            // held
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 35.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

        assertEquals(liveCount, countLiveEntries(map));
        ImmutableMap<Object, Object> originalMap = ImmutableMap.copyOf(map);
        assertEquals(liveCount, originalMap.size());
        // can't compare map contents until cleanup occurs
    
        for (int i = 1; i <= originalCount * 2; i *= 2) {
          if (i > 1) {
            // TODO(b/145386688): This access should be guarded by 'segment', which is not currently
            // held
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 35.1K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/MinimalCollection.java

        return new MinimalCollection<>(Object.class, true, contents);
      }
    
      // TODO: use this
      public static <E extends @Nullable Object> MinimalCollection<E> ofClassAndContents(
          Class<? super @NonNull E> type, E... contents) {
        return new MinimalCollection<>(type, true, contents);
      }
    
      private final E[] contents;
      private final Class<? super @NonNull E> type;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/ListsImplTest.java

          return new ArrayList<>(contents);
        }
      }
    
      private static final class LinkedListExample extends ListExample {
    
        protected LinkedListExample(String name) {
          super(name, Modifiability.ALL);
        }
    
        @Override
        public <T> List<T> createList(Class<T> listType, Collection<? extends T> contents) {
          return new LinkedList<>(contents);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  5. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSet.java

        final ArrayList<E> contents;
    
        public Builder() {
          this.contents = Lists.newArrayList();
        }
    
        Builder(int initialCapacity) {
          this.contents = Lists.newArrayListWithCapacity(initialCapacity);
        }
    
        @CanIgnoreReturnValue
        @Override
        public Builder<E> add(E element) {
          contents.add(checkNotNull(element));
          return this;
        }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 23 18:43:40 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

            assertThat(q).containsExactlyElementsIn(contents);
            q.add(next);
            contents.add(next);
            assertThat(q).containsExactlyElementsIn(contents);
            q.remove(i);
            assertTrue(contents.remove(Integer.valueOf(i)));
            assertThat(q).containsExactlyElementsIn(contents);
            assertEquals(next, q.poll());
            contents.remove(next);
    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)
  7. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetRemoveTester.java

      @CollectionFeature.Require(SUPPORTS_REMOVE)
      public void testRetainAllIgnoresCount() {
        initThreeCopies();
        List<E> contents = Helpers.copyToList(getMultiset());
        assertFalse(getMultiset().retainAll(Collections.singleton(e0())));
        expectContents(contents);
      }
    
      /**
       * Returns {@link Method} instances for the remove tests that assume multisets support duplicates
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7K bytes
    - Viewed (0)
  8. guava/src/com/google/common/cache/Striped64.java

                  } finally {
                    busy = 0;
                  }
                  if (created) break;
                  continue; // Slot is now non-empty
                }
              }
              collide = false;
            } else if (!wasUncontended) // CAS already known to fail
            wasUncontended = true; // Continue after rehash
            else if (a.cas(v = a.value, fn(v, x))) break;
    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)
  9. guava/src/com/google/common/collect/ImmutableSet.java

    import java.util.function.Consumer;
    import java.util.stream.Collector;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A {@link Set} whose contents will never change, with many other important properties detailed at
     * {@link ImmutableCollection}.
     *
     * @since 2.0
     */
    @GwtCompatible(serializable = true, emulated = true)
    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)
  10. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

              pred.next = succ;
              if (pred.thread == null) { // We raced with another node that unlinked pred. Restart.
                continue restart;
              }
            } else if (!ATOMIC_HELPER.casWaiters(this, curr, succ)) { // We are unlinking head
              continue restart; // We raced with an add or complete
            }
            curr = succ;
          }
          break;
        }
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
Back to top