Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,243 for _iterator2 (0.33 sec)

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

    package com.google.common.collect.testing;
    
    import com.google.common.annotations.GwtCompatible;
    import java.util.Iterator;
    
    /**
     * Creates iterators to be tested.
     *
     * @param <E> the element type of the iterator.
     * @author George van den Driessche
     */
    @GwtCompatible
    public interface TestIteratorGenerator<E> {
      Iterator<E> get();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 938 bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/graph/UndirectedGraphConnections.java

        return adjacentNodes();
      }
    
      @Override
      public Set<N> successors() {
        return adjacentNodes();
      }
    
      @Override
      public Iterator<EndpointPair<N>> incidentEdgeIterator(N thisNode) {
        return Iterators.transform(
            adjacentNodeValues.keySet().iterator(),
            (N incidentNode) -> EndpointPair.unordered(thisNode, incidentNode));
      }
    
      @Override
      @CheckForNull
      public V value(N node) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Oct 06 00:47:57 UTC 2021
    - 3.3K bytes
    - Viewed (0)
  3. 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/graph/EdgesConnecting.java

        this.targetNode = checkNotNull(targetNode);
      }
    
      @Override
      public UnmodifiableIterator<E> iterator() {
        E connectingEdge = getConnectingEdge();
        return (connectingEdge == null)
            ? ImmutableSet.<E>of().iterator()
            : Iterators.singletonIterator(connectingEdge);
      }
    
      @Override
      public int size() {
        return getConnectingEdge() == null ? 0 : 1;
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/AbstractIterator.java

     * ordinarily difficult to write iterators for. But using this class, one must implement only the
     * {@link #computeNext} method, and invoke the {@link #endOfData} method when appropriate.
     *
     * <p>Another example is an iterator that skips over null elements in a backing iterator. This could
     * be implemented as:
     *
     * <pre>{@code
     * public static Iterator<String> skipNulls(final Iterator<String> in) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Mar 18 02:04:10 UTC 2022
    - 6.4K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/internal/gtest-param-util-generated.h

        // current[i]_ is the actual traversing iterator.
        const typename ParamGenerator<T1>::iterator begin1_;
        const typename ParamGenerator<T1>::iterator end1_;
        typename ParamGenerator<T1>::iterator current1_;
        const typename ParamGenerator<T2>::iterator begin2_;
        const typename ParamGenerator<T2>::iterator end2_;
        typename ParamGenerator<T2>::iterator current2_;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 187.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

        final Iterator<Entry<K, Collection<V>>> keyIterator;
        @CheckForNull K key;
        @CheckForNull Collection<V> collection;
        Iterator<V> valueIterator;
    
        Itr() {
          keyIterator = map.entrySet().iterator();
          key = null;
          collection = null;
          valueIterator = Iterators.emptyModifiableIterator();
        }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 46.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/graph/EdgesConnecting.java

        this.targetNode = checkNotNull(targetNode);
      }
    
      @Override
      public UnmodifiableIterator<E> iterator() {
        E connectingEdge = getConnectingEdge();
        return (connectingEdge == null)
            ? ImmutableSet.<E>of().iterator()
            : Iterators.singletonIterator(connectingEdge);
      }
    
      @Override
      public int size() {
        return getConnectingEdge() == null ? 0 : 1;
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/UnmodifiableIterator.java

    import java.util.Iterator;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * An iterator that does not support {@link #remove}.
     *
     * <p>{@code UnmodifiableIterator} is used primarily in conjunction with implementations of {@link
     * ImmutableCollection}, such as {@link ImmutableList}. You can, however, convert an existing
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jul 09 17:31:04 UTC 2021
    - 1.8K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

        }
      }
    
      /**
       * Verifies that an Iterator is unmodifiable.
       *
       * <p>This test only works with iterators that iterate over a finite set.
       */
      public static void assertIteratorIsUnmodifiable(Iterator<?> iterator) {
        while (iterator.hasNext()) {
          iterator.next();
          try {
            iterator.remove();
            fail("Remove on unmodifiable iterator succeeded");
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 10 20:31:37 UTC 2024
    - 14.6K bytes
    - Viewed (0)
Back to top