Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 1,243 for _iterator2 (0.15 sec)

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

      }
    
      @Override
      Iterator<Entry<E>> entryIterator() {
        // AbstractIterator makes this fairly clean, but it doesn't support remove(). To support
        // remove(), we create an AbstractIterator, and then use ForwardingIterator to delegate to it.
        Iterator<Entry<E>> readOnlyIterator =
            new AbstractIterator<Entry<E>>() {
              private final Iterator<Map.Entry<E, AtomicInteger>> mapEntries =
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java

      public void testDescendingNavigation() {
        List<Entry<E>> ascending = new ArrayList<>();
        Iterators.addAll(ascending, sortedMultiset.entrySet().iterator());
        List<Entry<E>> descending = new ArrayList<>();
        Iterators.addAll(descending, sortedMultiset.descendingMultiset().entrySet().iterator());
        Collections.reverse(descending);
        assertEquals(ascending, descending);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

       * exception for its correctness: <i>the fail-fast behavior of iterators should be used only to
       * detect bugs.</i>
       *
       * @return an iterator over the elements contained in this collection
       */
      @Override
      public Iterator<E> iterator() {
        return new QueueIterator();
      }
    
      @Override
      public void clear() {
        for (int i = 0; i < size; i++) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 34K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

              // All collections are immutable empty. So safe for any type parameter.
              .put(Iterator.class, ImmutableSet.of().iterator())
              .put(PeekingIterator.class, Iterators.peekingIterator(ImmutableSet.of().iterator()))
              .put(ListIterator.class, ImmutableList.of().listIterator())
              .put(Iterable.class, ImmutableSet.of())
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 17 16:33:44 UTC 2024
    - 21K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/graph/EndpointPair.java

       * endpoints of a directed edge).
       */
      public abstract boolean isOrdered();
    
      /** Iterates in the order {@link #nodeU()}, {@link #nodeV()}. */
      @Override
      public final UnmodifiableIterator<N> iterator() {
        return Iterators.forArray(nodeU, nodeV);
      }
    
      /**
       * Two ordered {@link EndpointPair}s are equal if their {@link #source()} and {@link #target()}
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Oct 01 17:18:04 UTC 2021
    - 8.1K bytes
    - Viewed (0)
  6. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/compatibility/AbstractContextualMultiVersionTestInterceptor.java

    import java.util.Collection;
    import java.util.Collections;
    import java.util.HashSet;
    import java.util.List;
    import java.util.Set;
    import java.util.stream.Collectors;
    
    import static com.google.common.collect.Iterators.getLast;
    
    /**
     * Tests using this runner and its subtypes will run by default the first version specified.
     * <p>
     * The following command line flag is used to determine the versions to run:
     * <ul>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  7. guava/src/com/google/common/base/Optional.java

        return new Iterable<T>() {
          @Override
          public Iterator<T> iterator() {
            return new AbstractIterator<T>() {
              private final Iterator<? extends Optional<? extends T>> iterator =
                  checkNotNull(optionals.iterator());
    
              @Override
              @CheckForNull
              protected T computeNext() {
                while (iterator.hasNext()) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/RangeSet.java

      Range<C> span();
    
      // Views
    
      /**
       * Returns a view of the {@linkplain Range#isConnected disconnected} ranges that make up this
       * range set. The returned set may be empty. The iterators returned by its {@link
       * Iterable#iterator} method return the ranges in increasing order of lower bound (equivalently,
       * of upper bound).
       */
      Set<Range<C>> asRanges();
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

              // All collections are immutable empty. So safe for any type parameter.
              .put(Iterator.class, ImmutableSet.of().iterator())
              .put(PeekingIterator.class, Iterators.peekingIterator(ImmutableSet.of().iterator()))
              .put(ListIterator.class, ImmutableList.of().listIterator())
              .put(Iterable.class, ImmutableSet.of())
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 17 16:33:44 UTC 2024
    - 20.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/LinkedHashMultimap.java

          lastEntry = entry;
        }
    
        @Override
        public void setSuccessorInValueSet(ValueSetLink<K, V> entry) {
          firstEntry = entry;
        }
    
        @Override
        public Iterator<V> iterator() {
          return new Iterator<V>() {
            ValueSetLink<K, V> nextEntry = firstEntry;
            @CheckForNull ValueEntry<K, V> toRemove;
            int expectedModCount = modCount;
    
            private void checkForComodification() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 23.6K bytes
    - Viewed (0)
Back to top