- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for consumingIterable (0.53 sec)
-
android/guava-tests/test/com/google/common/collect/IterablesTest.java
// Test data List<String> list = new ArrayList<>(asList("a", "b")); // Test & Verify Iterable<String> consumingIterable = Iterables.consumingIterable(list); assertEquals("Iterables.consumingIterable(...)", consumingIterable.toString()); Iterator<String> consumingIterator = consumingIterable.iterator(); assertThat(list).containsExactly("a", "b").inOrder(); assertTrue(consumingIterator.hasNext());
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 45.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/IterablesTest.java
// Test data List<String> list = new ArrayList<>(asList("a", "b")); // Test & Verify Iterable<String> consumingIterable = Iterables.consumingIterable(list); assertEquals("Iterables.consumingIterable(...)", consumingIterable.toString()); Iterator<String> consumingIterator = consumingIterable.iterator(); assertThat(list).containsExactly("a", "b").inOrder(); assertTrue(consumingIterator.hasNext());
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 46.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Iterables.java
* that return and consume the queue's elements in queue order * @see Iterators#consumingIterator(Iterator) * @since 2.0 */ public static <T extends @Nullable Object> Iterable<T> consumingIterable(Iterable<T> iterable) { checkNotNull(iterable); return new FluentIterable<T>() { @Override public Iterator<T> iterator() { return (iterable instanceof Queue)
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 43.6K bytes - Viewed (0) -
guava/src/com/google/common/collect/Iterables.java
* that return and consume the queue's elements in queue order * @see Iterators#consumingIterator(Iterator) * @since 2.0 */ public static <T extends @Nullable Object> Iterable<T> consumingIterable(Iterable<T> iterable) { checkNotNull(iterable); return new FluentIterable<T>() { @Override public Iterator<T> iterator() { return (iterable instanceof Queue)
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 43.3K bytes - Viewed (0)