Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 914 for iterate (0.05 sec)

  1. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedMap.java

      }
    
      @CheckForNull
      public K lastKey() {
        return sortedDelegate.lastKey();
      }
    
      @CheckForNull
      K higher(K k) {
        Iterator<K> iterator = keySet().tailSet(k).iterator();
        while (iterator.hasNext()) {
          K tmp = iterator.next();
          if (comparator().compare(k, tmp) < 0) {
            return tmp;
          }
        }
        return null;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 27 19:19:19 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/MapPutAllTester.java

        assertThrows(
            ConcurrentModificationException.class,
            () -> {
              Iterator<Entry<K, V>> iterator = getMap().entrySet().iterator();
              putAll(MinimalCollection.of(e3(), e0()));
              iterator.next();
            });
      }
    
      @MapFeature.Require(absent = SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java

      private Entry<E> a;
      private Entry<E> b;
      private Entry<E> c;
    
      /** Used to avoid http://bugs.sun.com/view_bug.do?bug_id=6558557 */
      static <T> SortedMultiset<T> cast(Multiset<T> iterable) {
        return (SortedMultiset<T>) iterable;
      }
    
      @Override
      public void setUp() throws Exception {
        super.setUp();
        sortedMultiset = cast(getMultiset());
        entries =
            copyToList(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutAllTester.java

        assertThrows(
            ConcurrentModificationException.class,
            () -> {
              Iterator<Entry<K, V>> iterator = getMap().entrySet().iterator();
              putAll(MinimalCollection.of(e3(), e0()));
              iterator.next();
            });
      }
    
      @MapFeature.Require(absent = SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/graph/SuccessorsFunction.java

       *
       * <p>Some algorithms that operate on a {@code SuccessorsFunction} may produce undesired results
       * if the returned {@link Iterable} contains duplicate elements. Implementations of such
       * algorithms should document their behavior in the presence of duplicates.
       *
       * <p>The elements of the returned {@code Iterable} must each be:
       *
       * <ul>
       *   <li>Non-null
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 4.3K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ImmutableList.java

            return new RegularImmutableList<>(elementsWithoutTrailingNulls);
        }
      }
    
      ImmutableList() {}
    
      // This declaration is needed to make List.iterator() and
      // ImmutableCollection.iterator() consistent.
      @Override
      public UnmodifiableIterator<E> iterator() {
        return listIterator();
      }
    
      @Override
      public UnmodifiableListIterator<E> listIterator() {
        return listIterator(0);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 16 19:14:45 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/LinkedHashMultiset.java

    package com.google.common.collect;
    
    import com.google.common.annotations.GwtCompatible;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A {@code Multiset} implementation with predictable iteration order. Its iterator orders elements
     * according to when the first occurrence of the element was added. When the multiset contains
     * multiple instances of an element, those instances are consecutive in the iteration order. If all
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 3K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/ListsTest.java

        Iterator<String> iterator = list.iterator();
        assertTrue(iterator.hasNext());
        assertEquals("1", iterator.next());
        assertTrue(iterator.hasNext());
        assertEquals("2", iterator.next());
        assertTrue(iterator.hasNext());
        assertEquals("3", iterator.next());
        assertTrue(iterator.hasNext());
        assertEquals("4", iterator.next());
        assertFalse(iterator.hasNext());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ListsTest.java

        Iterator<String> iterator = list.iterator();
        assertTrue(iterator.hasNext());
        assertEquals("1", iterator.next());
        assertTrue(iterator.hasNext());
        assertEquals("2", iterator.next());
        assertTrue(iterator.hasNext());
        assertEquals("3", iterator.next());
        assertTrue(iterator.hasNext());
        assertEquals("4", iterator.next());
        assertFalse(iterator.hasNext());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/base/Converter.java

       */
      public Iterable<B> convertAll(Iterable<? extends A> fromIterable) {
        checkNotNull(fromIterable, "fromIterable");
        return new Iterable<B>() {
          @Override
          public Iterator<B> iterator() {
            return new Iterator<B>() {
              private final Iterator<? extends A> fromIterator = fromIterable.iterator();
    
              @Override
              public boolean hasNext() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 23K bytes
    - Viewed (0)
Back to top