Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 784 for iterator (0.11 sec)

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

       * @throws ClassCastException if the parameters are not <i>mutually comparable</i> under this
       *     ordering.
       * @since 11.0
       */
      @ParametricNullness
      public <E extends T> E min(Iterator<E> iterator) {
        // let this throw NoSuchElementException as necessary
        E minSoFar = iterator.next();
    
        while (iterator.hasNext()) {
          minSoFar = this.<E>min(minSoFar, iterator.next());
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

      }
    
      public void testSize1() {
        Iterator<Integer> iterator = singleton(0).iterator();
        assertEquals(1, Iterators.size(iterator));
      }
    
      public void testSize_partiallyConsumed() {
        Iterator<Integer> iterator = asList(1, 2, 3, 4, 5).iterator();
        iterator.next();
        iterator.next();
        assertEquals(3, Iterators.size(iterator));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/MinMaxPriorityQueue.java

          }
        }
      }
    
      /**
       * Returns an iterator over the elements contained in this collection, <i>in no particular
       * order</i>.
       *
       * <p>The iterator is <i>fail-fast</i>: If the MinMaxPriorityQueue is modified at any time after
       * the iterator is created, in any way except through the iterator's own remove method, the
       * iterator will generally throw a {@link ConcurrentModificationException}. Thus, in the face of
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ForwardingListIterator.java

    import java.util.ListIterator;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A list iterator which forwards all its method calls to another list iterator. Subclasses should
     * override one or more methods to modify the behavior of the backing iterator as desired per the <a
     * href="http://en.wikipedia.org/wiki/Decorator_pattern">decorator pattern</a>.
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 29 19:42:21 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/AbstractMapBasedMultiset.java

          expectedModCount = backingMap.modCount;
        }
      }
    
      @Override
      final Iterator<E> elementIterator() {
        return new Itr<E>() {
          @Override
          @ParametricNullness
          E result(int entryIndex) {
            return backingMap.getKey(entryIndex);
          }
        };
      }
    
      @Override
      final Iterator<Entry<E>> entryIterator() {
        return new Itr<Entry<E>>() {
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Mar 06 16:06:58 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/collection/ArrayIterator.java

     */
    package org.codelibs.core.collection;
    
    import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull;
    
    import java.util.Iterator;
    import java.util.NoSuchElementException;
    
    import org.codelibs.core.exception.ClUnsupportedOperationException;
    
    /**
     * 配列を{@link Iterator}にするAdaptorです。
     * <p>
     * 次のように使います.
     * </p>
     *
     * <pre>
     * import static org.codelibs.core.collection.ArrayIterator.*;
     *
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/dcerpc/DcerpcBinding.java

                return options.get(key);
            return null;
        }
    
        public String toString() {
            String ret = proto + ":" + server + "[" + endpoint;
            if (options != null) {
                Iterator iter = options.keySet().iterator();
                while (iter.hasNext()) {
                    Object key = iter.next();
                    Object val = options.get(key);
                    ret += "," + key + "=" + val;
                }
            }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 3.2K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/LinkedListMultimap.java

     * {@link #replaceValues} attempts to preserve iteration order as much as possible.
     *
     * <p>The collections returned by {@link #keySet()} and {@link #asMap} iterate through the keys in
     * the order they were first added to the multimap. Similarly, {@link #get}, {@link #removeAll}, and
     * {@link #replaceValues} return collections that iterate through the values in the order they were
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 27.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/SimpleAbstractMultisetTest.java

          return frequency;
        }
    
        @Override
        Iterator<E> elementIterator() {
          return Multisets.elementIterator(entryIterator());
        }
    
        @Override
        Iterator<Entry<E>> entryIterator() {
          final Iterator<Map.Entry<E, Integer>> backingEntries = backingMap.entrySet().iterator();
          return new UnmodifiableIterator<Multiset.Entry<E>>() {
            @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/IteratorsTest.java

      }
    
      public void testSize1() {
        Iterator<Integer> iterator = singleton(0).iterator();
        assertEquals(1, Iterators.size(iterator));
      }
    
      public void testSize_partiallyConsumed() {
        Iterator<Integer> iterator = asList(1, 2, 3, 4, 5).iterator();
        iterator.next();
        iterator.next();
        assertEquals(3, Iterators.size(iterator));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
Back to top