Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 651 for iterators (0.14 sec)

  1. guava/src/com/google/common/collect/TreeTraverser.java

    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.collect.Iterators.singletonIterator;
    
    import com.google.common.annotations.Beta;
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.base.Function;
    import java.util.ArrayDeque;
    import java.util.Deque;
    import java.util.Iterator;
    import java.util.Queue;
    import java.util.function.Consumer;
    import javax.annotation.CheckForNull;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/graph/DirectedGraphConnections.java

          }
        };
      }
    
      @Override
      public Iterator<EndpointPair<N>> incidentEdgeIterator(N thisNode) {
        checkNotNull(thisNode);
    
        Iterator<EndpointPair<N>> resultWithDoubleSelfLoop;
        if (orderedNodeConnections == null) {
          resultWithDoubleSelfLoop =
              Iterators.concat(
                  Iterators.transform(
                      predecessors().iterator(),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 18K bytes
    - Viewed (0)
  3. 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: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  4. 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: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  5. 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)
  6. 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: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 06 00:47:57 UTC 2021
    - 3.3K bytes
    - Viewed (0)
  7. 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: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 06 00:47:57 UTC 2021
    - 3.3K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

      public void testCopyOf_iterator_oneElementRepeated() {
        Iterator<String> iterator = Iterators.forArray("a", "a", "a");
        Set<String> set = copyOf(iterator);
        assertEquals(singleton("a"), set);
      }
    
      public void testCopyOf_iterator_general() {
        Iterator<String> iterator = Iterators.forArray("a", "b", "a");
        Set<String> set = copyOf(iterator);
        assertEquals(2, set.size());
        assertTrue(set.contains("a"));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/graph/TestUtil.java

       * contains(). Verify that these sets are consistent with the elements of their iterator.
       */
      @CanIgnoreReturnValue
      static <T> Set<T> sanityCheckSet(Set<T> set) {
        assertThat(set).hasSize(Iterators.size(set.iterator()));
        for (Object element : set) {
          assertThat(set).contains(element);
        }
        assertThat(set).doesNotContain(new Object());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/graph/AbstractDirectedNetworkConnections.java

          @Override
          public UnmodifiableIterator<E> iterator() {
            Iterable<E> incidentEdges =
                (selfLoopCount == 0)
                    ? Iterables.concat(inEdgeMap.keySet(), outEdgeMap.keySet())
                    : Sets.union(inEdgeMap.keySet(), outEdgeMap.keySet());
            return Iterators.unmodifiableIterator(incidentEdges.iterator());
          }
    
          @Override
          public int size() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 4.5K bytes
    - Viewed (0)
Back to top