Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for newTargetIterator (0.11 sec)

  1. guava-testlib/src/com/google/common/collect/testing/google/MultisetIteratorTester.java

            4,
            MODIFIABLE,
            getSubjectGenerator().order(asList(e0(), e1(), e1(), e2())),
            IteratorTester.KnownOrder.KNOWN_ORDER) {
          @Override
          protected Iterator<E> newTargetIterator() {
            return getSubjectGenerator().create(e0(), e1(), e1(), e2()).iterator();
          }
        }.test();
      }
    
      @CollectionFeature.Require(value = SUPPORTS_ITERATOR_REMOVE, absent = KNOWN_ORDER)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetIteratorTester.java

            4,
            MODIFIABLE,
            getSubjectGenerator().order(asList(e0(), e1(), e1(), e2())),
            IteratorTester.KnownOrder.KNOWN_ORDER) {
          @Override
          protected Iterator<E> newTargetIterator() {
            return getSubjectGenerator().create(e0(), e1(), e1(), e2()).iterator();
          }
        }.test();
      }
    
      @CollectionFeature.Require(value = SUPPORTS_ITERATOR_REMOVE, absent = KNOWN_ORDER)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/IteratorsTest.java

          @Override
          protected Iterator<Integer> newTargetIterator() {
            return Iterators.cycle(asList(1, 2));
          }
        }.test();
      }
    
      @GwtIncompatible // slow (~5s)
      public void testConcatNoIteratorsYieldsEmpty() {
        new EmptyIteratorTester() {
          @Override
          protected Iterator<Integer> newTargetIterator() {
            return Iterators.concat();
          }
        }.test();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

          @Override
          protected Iterator<Integer> newTargetIterator() {
            return Iterators.cycle(asList(1, 2));
          }
        }.test();
      }
    
      @GwtIncompatible // slow (~5s)
      public void testConcatNoIteratorsYieldsEmpty() {
        new EmptyIteratorTester() {
          @Override
          protected Iterator<Integer> newTargetIterator() {
            return Iterators.concat();
          }
        }.test();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/LinkedHashMultimapTest.java

            newLinkedHashSet(asList(2, 3, 4, 7, 8)),
            IteratorTester.KnownOrder.KNOWN_ORDER) {
          private @Nullable Multimap<String, Integer> multimap;
    
          @Override
          protected Iterator<Integer> newTargetIterator() {
            multimap = LinkedHashMultimap.create();
            multimap.putAll("foo", asList(2, 3, 4));
            multimap.putAll("bar", asList(5, 6));
            multimap.putAll("foo", asList(7, 8));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/PeekingIteratorTest.java

          super(master.size() + 3, MODIFIABLE, master, IteratorTester.KnownOrder.KNOWN_ORDER);
          this.master = master;
        }
    
        @Override
        protected Iterator<T> newTargetIterator() {
          // make copy from master to verify later
          targetList = Lists.newArrayList(master);
          Iterator<T> iterator = targetList.iterator();
          return Iterators.peekingIterator(iterator);
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/LinkedListMultimapTest.java

            private @Nullable LinkedListMultimap<String, Integer> multimap;
    
            @Override
            protected ListIterator<Entry<String, Integer>> newTargetIterator() {
              multimap = create();
              multimap.putAll("foo", asList(2, 3));
              multimap.putAll("bar", asList(4, 5));
              multimap.put("foo", 6);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/testers/ListListIteratorTester.java

            listListIteratorTesterNumIterations(),
            singleton(e4()),
            features,
            copyToList(getOrderedElements()),
            0) {
          @Override
          protected ListIterator<E> newTargetIterator() {
            resetCollection();
            return getList().listIterator();
          }
    
          @Override
          protected void verify(List<E> elements) {
            expectContents(elements);
          }
        }.test();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/PeekingIteratorTest.java

          super(master.size() + 3, MODIFIABLE, master, IteratorTester.KnownOrder.KNOWN_ORDER);
          this.master = master;
        }
    
        @Override
        protected Iterator<T> newTargetIterator() {
          // make copy from master to verify later
          targetList = Lists.newArrayList(master);
          Iterator<T> iterator = targetList.iterator();
          return Iterators.peekingIterator(iterator);
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

       * in the given order. Warning: it is not enough to simply pull multiple iterators from the same
       * source Iterable, unless that Iterator is unmodifiable.
       */
      protected abstract I newTargetIterator();
    
      /**
       * Override this to verify anything after running a list of Stimuli.
       *
       * <p>For example, verify that calls to remove() actually removed the correct elements.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 21.2K bytes
    - Viewed (0)
Back to top