Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 23 for newLinkedList (0.1 sec)

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

    import static com.google.common.base.Strings.isNullOrEmpty;
    import static com.google.common.collect.Iterables.concat;
    import static com.google.common.collect.Lists.newArrayList;
    import static com.google.common.collect.Lists.newLinkedList;
    import static com.google.common.truth.Truth.assertThat;
    import static java.util.Collections.nCopies;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 10:16:44 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/SynchronizedQueueTest.java

        outer.add("foo"); // necessary because we try to remove elements later on
        return outer;
      }
    
      private static final class TestQueue<E> implements Queue<E> {
        private final Queue<E> delegate = Lists.newLinkedList();
        public final Object mutex = new Object[0]; // something Serializable
    
        @Override
        public boolean offer(E o) {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.offer(o);
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Aug 19 20:50:58 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/Collections2Test.java

    import static com.google.common.base.Strings.isNullOrEmpty;
    import static com.google.common.collect.Iterables.concat;
    import static com.google.common.collect.Lists.newArrayList;
    import static com.google.common.collect.Lists.newLinkedList;
    import static com.google.common.truth.Truth.assertThat;
    import static java.util.Collections.nCopies;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 10:16:44 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

          Segment<Object, Object> segment = map.segments[0];
          List<ReferenceEntry<Object, Object>> writeOrder = Lists.newLinkedList();
          List<ReferenceEntry<Object, Object>> readOrder = Lists.newLinkedList();
          for (int i = 0; i < SMALL_MAX_SIZE; i++) {
            Object key = new Object();
            int hash = map.hash(key);
    
            map.get(key, loader);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 110.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/cache/LocalCacheTest.java

          Segment<Object, Object> segment = map.segments[0];
          List<ReferenceEntry<Object, Object>> writeOrder = Lists.newLinkedList();
          List<ReferenceEntry<Object, Object>> readOrder = Lists.newLinkedList();
          for (int i = 0; i < SMALL_MAX_SIZE; i++) {
            Object key = new Object();
            int hash = map.hash(key);
    
            map.get(key, loader);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 112.3K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/Lists.java

      @GwtCompatible(serializable = true)
      @SuppressWarnings("NonApiType") // acts as a direct substitute for a constructor call
      public static <E extends @Nullable Object> LinkedList<E> newLinkedList(
          Iterable<? extends E> elements) {
        LinkedList<E> list = newLinkedList();
        Iterables.addAll(list, elements);
        return list;
      }
    
      /**
       * Creates an empty {@code CopyOnWriteArrayList} instance.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.1K bytes
    - Viewed (0)
  7. .idea/inspectionProfiles/Gradle.xml

          </replaceConfiguration>
          <replaceConfiguration name="Treat some Guava Collection factory methods as Deprecated" uuid="82f9f9ab-9c3b-367f-99ad-40841dc13819" text="com.google.common.collect.Lists.newLinkedList()" recursive="false" caseInsensitive="false" type="JAVA" pattern_context="default" reformatAccordingToStyle="true" shortenFQN="true" replacement="new java.util.LinkedList&lt;&gt;()">
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Jun 26 21:49:47 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  8. android/guava-tests/benchmark/com/google/common/util/concurrent/ExecutionListBenchmark.java

      private static final class OldExecutionList {
        static final Logger log = Logger.getLogger(OldExecutionList.class.getName());
        final Queue<OldExecutionList.RunnableExecutorPair> runnables = Lists.newLinkedList();
        boolean executed = false;
    
        public void add(Runnable runnable, Executor executor) {
          Preconditions.checkNotNull(runnable, "Runnable was null.");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 20.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/base/PredicatesTest.java

            Predicates.or(Collections.<Predicate<@Nullable Integer>>emptyList());
        Predicate<@Nullable Integer> troo = Predicates.or(Collections.singletonList(TRUE));
        /*
         * newLinkedList() takes varargs. TRUE and FALSE are both instances of
         * Predicate<Integer>, so the call is safe.
         */
        Predicate<@Nullable Integer> trueAndFalse = Predicates.or(Arrays.asList(TRUE, FALSE));
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 32.4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

          throws Exception {
        IteratorTester<T> tester =
            new IteratorTester<T>(
                steps,
                IteratorFeature.MODIFIABLE,
                Lists.newLinkedList(values),
                IteratorTester.KnownOrder.UNKNOWN_ORDER) {
              private @Nullable MinMaxPriorityQueue<T> mmHeap;
    
              @Override
              protected Iterator<T> newTargetIterator() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.9K bytes
    - Viewed (0)
Back to top