Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 326 for iterator (0.11 sec)

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

            @Override
            public @Nullable Object execute(Iterator<?> iterator) {
              iterator.remove();
              return null;
            }
          };
    
      private static final IteratorOperation NEXT_METHOD =
          new IteratorOperation() {
            @Override
            public @Nullable Object execute(Iterator<?> iterator) {
              return iterator.next();
            }
          };
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Multisets.java

          }
    
          @Override
          Iterator<E> elementIterator() {
            throw new AssertionError("should never be called");
          }
    
          @Override
          Iterator<Entry<E>> entryIterator() {
            final Iterator<? extends Entry<? extends E>> iterator1 = multiset1.entrySet().iterator();
            final Iterator<? extends Entry<? extends E>> iterator2 = multiset2.entrySet().iterator();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/Multisets.java

          }
    
          @Override
          Iterator<E> elementIterator() {
            throw new AssertionError("should never be called");
          }
    
          @Override
          Iterator<Entry<E>> entryIterator() {
            final Iterator<? extends Entry<? extends E>> iterator1 = multiset1.entrySet().iterator();
            final Iterator<? extends Entry<? extends E>> iterator2 = multiset2.entrySet().iterator();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 41.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Collections2.java

        }
    
        @Override
        public boolean isEmpty() {
          return !Iterables.any(unfiltered, predicate);
        }
    
        @Override
        public Iterator<E> iterator() {
          return Iterators.filter(unfiltered.iterator(), predicate);
        }
    
        @Override
        public boolean remove(@CheckForNull Object element) {
          return contains(element) && unfiltered.remove(element);
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java

        assertFalse(underlying.containsKey("b"));
    
        Iterator<String> keyIterator = keys.iterator();
        keyIterator.next();
        keyIterator.remove();
        assertFalse(underlying.containsKey("c"));
    
        Collection<String> values = map.values();
        values.remove("4");
        assertFalse(underlying.containsKey("d"));
    
        Iterator<String> valueIterator = values.iterator();
        valueIterator.next();
        valueIterator.remove();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  6. android/guava-testlib/test/com/google/common/collect/testing/IteratorTesterTest.java

       */
      static class IteratorWithSunJavaBug6529795<T> implements Iterator<T> {
        Iterator<T> iterator;
        boolean nextThrewException;
    
        IteratorWithSunJavaBug6529795(Iterator<T> iterator) {
          this.iterator = iterator;
        }
    
        @Override
        public boolean hasNext() {
          return iterator.hasNext();
        }
    
        @Override
        public T next() {
          try {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java

        Iterator<String> iterator = asList("a", "b", "a").iterator();
        Multiset<String> multiset = ImmutableMultiset.copyOf(iterator);
        assertEquals(HashMultiset.create(asList("a", "b", "a")), multiset);
      }
    
      public void testCopyOf_iteratorContainingNull() {
        Iterator<@Nullable String> iterator =
            Arrays.<@Nullable String>asList("a", null, "b").iterator();
        assertThrows(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/FilteredEntryMultimap.java

              return AsMap.this;
            }
    
            @Override
            public Iterator<Entry<K, Collection<V>>> iterator() {
              return new AbstractIterator<Entry<K, Collection<V>>>() {
                final Iterator<Entry<K, Collection<V>>> backingIterator =
                    unfiltered.asMap().entrySet().iterator();
    
                @Override
                @CheckForNull
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/ImmutableListTest.java

        Iterator<String> iterator = asList("a", "b", "a").iterator();
        List<String> list = ImmutableList.copyOf(iterator);
        assertEquals(asList("a", "b", "a"), list);
      }
    
      public void testCopyOf_iteratorContainingNull() {
        Iterator<@Nullable String> iterator =
            Arrays.<@Nullable String>asList("a", null, "b").iterator();
        assertThrows(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Iterables.java

          @Override
          public Iterator<T> iterator() {
            if (iterable instanceof List) {
              final List<T> list = (List<T>) iterable;
              int toSkip = Math.min(list.size(), numberToSkip);
              return list.subList(toSkip, list.size()).iterator();
            }
            final Iterator<T> iterator = iterable.iterator();
    
            Iterators.advance(iterator, numberToSkip);
    
            /*
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 24 19:38:27 UTC 2024
    - 42.8K bytes
    - Viewed (0)
Back to top