Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for newLinkedList (0.09 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. 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)
  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. 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)
  8. 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)
  9. android/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