Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 914 for iterate (0.13 sec)

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

            lastFromForgetMeNot = null;
          }
        }
    
        /** Returns true if an exact reference (==) was found and removed from the supplied iterable. */
        private boolean foundAndRemovedExactReference(Iterable<E> elements, E target) {
          for (Iterator<E> it = elements.iterator(); it.hasNext(); ) {
            E element = it.next();
            if (element == target) {
              it.remove();
              return true;
            }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  2. 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)
  3. android/guava/src/com/google/common/collect/Iterables.java

        private UnmodifiableIterable(Iterable<? extends T> iterable) {
          this.iterable = iterable;
        }
    
        @Override
        public Iterator<T> iterator() {
          return Iterators.unmodifiableIterator(iterable.iterator());
        }
    
        @Override
        public String toString() {
          return iterable.toString();
        }
        // no equals and hashCode; it would break the contract!
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 24 19:38:27 UTC 2024
    - 42.8K bytes
    - Viewed (0)
  4. android/guava-testlib/test/com/google/common/collect/testing/MinimalIterableTest.java

        assertThrows(NoSuchElementException.class, () -> iterator.next());
        assertThrows(IllegalStateException.class, () -> iterable.iterator());
      }
    
      public void testOf_one() {
        Iterable<String> iterable = MinimalIterable.of("a");
        Iterator<String> iterator = iterable.iterator();
        assertTrue(iterator.hasNext());
        assertEquals("a", iterator.next());
        assertFalse(iterator.hasNext());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/FluentIterable.java

        Iterable<E> iterable = getDelegate();
        if (iterable instanceof List) {
          List<E> list = (List<E>) iterable;
          if (list.isEmpty()) {
            return Optional.absent();
          }
          return Optional.of(list.get(list.size() - 1));
        }
        Iterator<E> iterator = iterable.iterator();
        if (!iterator.hasNext()) {
          return Optional.absent();
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 24 13:42:31 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/io/CharSource.java

       *
       * <p>Note: The input {@code Iterator} will be copied to an {@code ImmutableList} when this method
       * is called. This will fail if the iterator is infinite and may cause problems if the iterator
       * eagerly fetches data for each source when iterated (rather than producing sources that only
       * load data through their streams). Prefer using the {@link #concat(Iterable)} overload if
       * possible.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/base/ConverterTest.java

        Iterator<Long> iterator = convertedValues.iterator();
        iterator.next();
        iterator.remove();
        assertEquals(ImmutableList.of("123"), mutableList);
      }
    
      public void testReverse() {
        Converter<Long, String> reverseConverter = STR_TO_LONG.reverse();
    
        assertEquals(STR_VAL, reverseConverter.convert(LONG_VAL));
        assertEquals(LONG_VAL, reverseConverter.reverse().convert(STR_VAL));
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 01 16:09:28 UTC 2024
    - 8K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/collection/MultiIterator.java

         *
         * @param <E>
         *            要素の型
         * @param iterables
         *            {@link Iterable}の並び。{@literal null}であってはいけません
         * @return {@link MultiIterator}をラップした{@link Iterable}
         */
        public static <E> Iterable<E> iterable(final Iterable<E>... iterables) {
            assertArgumentNotNull("iterables", iterables);
    
            @SuppressWarnings("unchecked")
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

            lastFromForgetMeNot = null;
          }
        }
    
        /** Returns true if an exact reference (==) was found and removed from the supplied iterable. */
        private boolean foundAndRemovedExactReference(Iterable<E> elements, E target) {
          for (Iterator<E> it = elements.iterator(); it.hasNext(); ) {
            E element = it.next();
            if (element == target) {
              it.remove();
              return true;
            }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

        return new Iterator<T>() {
          Iterator<T> iterator = Collections.<T>emptySet().iterator();
    
          @Override
          public boolean hasNext() {
            return true;
          }
    
          @Override
          public T next() {
            if (!iterator.hasNext()) {
              iterator = iterable.iterator();
            }
            return iterator.next();
          }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
Back to top