Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for newLinkedList (0.27 sec)

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

        LinkedList<Integer> list = Lists.newLinkedList();
        assertEquals(emptyList(), list);
      }
    
      public void testNewLinkedListFromCollection() {
        LinkedList<Integer> list = Lists.newLinkedList(SOME_COLLECTION);
        assertEquals(SOME_COLLECTION, list);
      }
    
      public void testNewLinkedListFromIterable() {
        LinkedList<Integer> list = Lists.newLinkedList(SOME_ITERABLE);
        assertEquals(SOME_COLLECTION, list);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ListsTest.java

        LinkedList<Integer> list = Lists.newLinkedList();
        assertEquals(emptyList(), list);
      }
    
      public void testNewLinkedListFromCollection() {
        LinkedList<Integer> list = Lists.newLinkedList(SOME_COLLECTION);
        assertEquals(SOME_COLLECTION, list);
      }
    
      public void testNewLinkedListFromIterable() {
        LinkedList<Integer> list = Lists.newLinkedList(SOME_ITERABLE);
        assertEquals(SOME_COLLECTION, list);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/misc/DisposableUtil.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.misc;
    
    import static org.codelibs.core.collection.CollectionsUtil.newLinkedList;
    import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull;
    
    import java.beans.Introspector;
    import java.util.Deque;
    
    /**
     * アプリケーションの終了時にリソースを破棄するためのユーティリティクラスです。
     * <p>
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/IterablesTest.java

          @Override
          protected Iterator<Integer> newTargetIterator() {
            return Iterables.consumingIterable(Lists.newLinkedList(items)).iterator();
          }
        }.test();
      }
    
      public void testConsumingIterable_queue_removesFromQueue() {
        Queue<Integer> queue = Lists.newLinkedList(asList(5, 14));
    
        Iterator<Integer> consumingIterator = Iterables.consumingIterable(queue).iterator();
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 19:12:33 UTC 2024
    - 45K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ForwardingQueueTest.java

                    new TestStringQueueGenerator() {
    
                      @Override
                      protected Queue<String> create(String[] elements) {
                        return new StandardImplForwardingQueue<>(Lists.newLinkedList(asList(elements)));
                      }
                    })
                .named("ForwardingQueue[LinkedList] with standard implementations")
                .withFeatures(
                    CollectionSize.ANY,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/SynchronizedDequeTest.java

        outer.add("foo"); // necessary because we try to remove elements later on
        return outer;
      }
    
      private static final class TestDeque<E> implements Deque<E> {
        private final Deque<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: Tue Aug 06 17:23:04 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top