Package org.jclouds.collect
Class AdvanceUntilEmptyIterable<E>
java.lang.Object
com.google.common.collect.FluentIterable<com.google.common.collect.FluentIterable<E>>
org.jclouds.collect.AdvanceUntilEmptyIterable<E>
- Type Parameters:
E-
- All Implemented Interfaces:
Iterable<com.google.common.collect.FluentIterable<E>>
@Beta
public class AdvanceUntilEmptyIterable<E>
extends com.google.common.collect.FluentIterable<com.google.common.collect.FluentIterable<E>>
continues to supply iterables until the last was empty
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAdvanceUntilEmptyIterable(com.google.common.base.Supplier<com.google.common.collect.FluentIterable<E>> nextIterable) -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.collect.FluentIterable<E> concat()Combines all the pages into a single unmodifiable iterable.static <E> AdvanceUntilEmptyIterable<E> create(com.google.common.base.Supplier<com.google.common.collect.FluentIterable<E>> nextIterable) iterator()Methods inherited from class com.google.common.collect.FluentIterable
allMatch, anyMatch, append, append, concat, concat, concat, concat, concat, contains, copyInto, cycle, filter, filter, first, firstMatch, from, from, from, get, index, isEmpty, join, last, limit, of, of, size, skip, stream, toArray, toList, toMap, toMultiset, toSet, toSortedList, toSortedSet, toString, transform, transformAndConcat, uniqueIndexMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
AdvanceUntilEmptyIterable
protected AdvanceUntilEmptyIterable(com.google.common.base.Supplier<com.google.common.collect.FluentIterable<E>> nextIterable)
-
-
Method Details
-
create
public static <E> AdvanceUntilEmptyIterable<E> create(com.google.common.base.Supplier<com.google.common.collect.FluentIterable<E>> nextIterable) -
iterator
-
concat
Combines all the pages into a single unmodifiable iterable. ex.FluentIterable
blobs = blobstore.list(...).concat(); for (StorageMetadata blob : blobs) { process(blob); } - See Also:
-