Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for newTargetIterator (0.09 sec)

  1. android/guava-testlib/test/com/google/common/collect/testing/IteratorTesterTest.java

              protected Iterator<Integer> newTargetIterator() {
                return ImmutableList.of(1, 2).iterator();
              }
            };
        assertFailure(tester);
      }
    
      public void testUnknownOrder() {
        new IteratorTester<Integer>(
            3, MODIFIABLE, newArrayList(1, 2), IteratorTester.KnownOrder.UNKNOWN_ORDER) {
          @Override
          protected Iterator<Integer> newTargetIterator() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  2. guava-testlib/test/com/google/common/collect/testing/IteratorTesterTest.java

              protected Iterator<Integer> newTargetIterator() {
                return ImmutableList.of(1, 2).iterator();
              }
            };
        assertFailure(tester);
      }
    
      public void testUnknownOrder() {
        new IteratorTester<Integer>(
            3, MODIFIABLE, newArrayList(1, 2), IteratorTester.KnownOrder.UNKNOWN_ORDER) {
          @Override
          protected Iterator<Integer> newTargetIterator() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. android/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
    - 20.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/ListsTest.java

        new IteratorTester<String>(
            5, UNMODIFIABLE, asList("foo", "bar", "baz"), IteratorTester.KnownOrder.KNOWN_ORDER) {
          @Override
          protected Iterator<String> newTargetIterator() {
            return Lists.asList("foo", new String[] {"bar", "baz"}).iterator();
          }
        }.test();
      }
    
      private void checkFooBarBazList(List<String> list) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ListsTest.java

        new IteratorTester<String>(
            5, UNMODIFIABLE, asList("foo", "bar", "baz"), IteratorTester.KnownOrder.KNOWN_ORDER) {
          @Override
          protected Iterator<String> newTargetIterator() {
            return Lists.asList("foo", new String[] {"bar", "baz"}).iterator();
          }
        }.test();
      }
    
      private void checkFooBarBazList(List<String> list) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/SetsTest.java

        final Set<Set<Integer>> powerSet = powerSet(elements);
        new IteratorTester<Set<Integer>>(6, UNMODIFIABLE, expected, KNOWN_ORDER) {
          @Override
          protected Iterator<Set<Integer>> newTargetIterator() {
            return powerSet.iterator();
          }
        }.test();
      }
    
      public void testPowerSetIteration_iteratorTester_fast() {
        ImmutableSet<Integer> elements = ImmutableSet.of(1, 2);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 48.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

          protected Iterator<String> newTargetIterator() {
            return of("a").iterator();
          }
        }.test();
      }
    
      @GwtIncompatible // slow (~30s)
      public void testIterator_general() {
        new IteratorTester<String>(
            5, UNMODIFIABLE, asList("a", "b", "c"), IteratorTester.KnownOrder.KNOWN_ORDER) {
          @Override
          protected Iterator<String> newTargetIterator() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.5K bytes
    - Viewed (0)
Back to top