- Sort Score
- Num 10 results
- Language All
Results 111 - 120 of 1,144 for iterate (0.06 seconds)
-
android/guava/src/com/google/common/collect/ImmutableMultimap.java
* over keys in the order they were first encountered in the input, and the values for each key * are iterated in the order they were encountered. * * @throws NullPointerException if any key, value, or entry is null * @since 19.0 */ public static <K, V> ImmutableMultimap<K, V> copyOf( Iterable<? extends Entry<? extends K, ? extends V>> entries) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Dec 09 15:58:48 GMT 2025 - 27.1K bytes - Click Count (0) -
android/guava/src/com/google/common/base/Joiner.java
return appendTo(builder, parts.iterator()); } /** * Appends the string representation of each of {@code parts}, using the previously configured * separator between each, to {@code builder}. Identical to {@link #appendTo(Appendable, * Iterable)}, except that it does not throw {@link IOException}. * * @since 11.0 */ @CanIgnoreReturnValue
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 17 20:26:29 GMT 2025 - 19.3K bytes - Click Count (0) -
src/main/java/org/codelibs/core/convert/DateConversionUtil.java
} } return new String(buf); } /** * {@link Iterator} that iterates over {@link DateFormat}s corresponding to the styles held by the locale. * * @author koichik */ protected static class DateFormatIterator implements Iterator<DateFormat> { /** The locale. */ protected final Locale locale;Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 19.6K bytes - Click Count (0) -
guava/src/com/google/common/collect/ImmutableSortedSet.java
size(), SPLITERATOR_CHARACTERISTICS | Spliterator.SIZED) { final UnmodifiableIterator<E> iterator = iterator(); @Override public boolean tryAdvance(Consumer<? super E> action) { if (iterator.hasNext()) { action.accept(iterator.next()); return true; } else { return false; } } @Override
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 39.1K bytes - Click Count (0) -
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)); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 57.3K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/MinimalIterable.java
return (MinimalIterable) of(elements.toArray()); } private @Nullable Iterator<E> iterator; private MinimalIterable(Iterator<E> iterator) { this.iterator = iterator; } @Override public Iterator<E> iterator() { if (iterator == null) { // TODO: throw something else? Do we worry that people's code and tests
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 3.1K bytes - Click Count (0) -
guava/src/com/google/common/collect/Iterables.java
extends FluentIterable<T> { private final Iterable<? extends T> iterable; private UnmodifiableIterable(Iterable<? extends T> iterable) { this.iterable = iterable; } @Override public Iterator<T> iterator() { return Iterators.unmodifiableIterator(iterable.iterator()); } @Override public void forEach(Consumer<? super T> action) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 16:16:42 GMT 2026 - 43.6K bytes - Click Count (0) -
doc/go_spec.html
</li> <li> A "for" statement with <a href="#For_range">"range" clause</a> may iterate over integer values from zero to an upper limit. </li> </ul> <h4 id="Go_1.23">Go 1.23</h4> <ul> <li>A "for" statement with <a href="#For_range">"range" clause</a> accepts an iterator function as range expression. </li> </ul> <h4 id="Go_1.24">Go 1.24</h4> <ul> <li>
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Wed Apr 01 23:39:18 GMT 2026 - 287.8K bytes - Click Count (1) -
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());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 19:26:39 GMT 2026 - 2.6K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/Helpers.java
return singletonMap(key, value).entrySet().iterator().next(); } private static boolean isEmpty(Iterable<?> iterable) { return iterable instanceof Collection ? ((Collection<?>) iterable).isEmpty() : !iterable.iterator().hasNext(); } public static void assertEmpty(Iterable<?> iterable) { if (!isEmpty(iterable)) { fail("Not true that " + iterable + " is empty"); } }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 21:06:42 GMT 2026 - 17.2K bytes - Click Count (0)