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
Constructors Modifier Constructor Description protected
AdvanceUntilEmptyIterable(com.google.common.base.Supplier<com.google.common.collect.FluentIterable<E>> nextIterable)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.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<com.google.common.collect.FluentIterable<E>>
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, uniqueIndex
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
AdvanceUntilEmptyIterable
protected AdvanceUntilEmptyIterable(com.google.common.base.Supplier<com.google.common.collect.FluentIterable<E>> nextIterable)
-
-
Method Detail
-
create
public static <E> AdvanceUntilEmptyIterable<E> create(com.google.common.base.Supplier<com.google.common.collect.FluentIterable<E>> nextIterable)
-
concat
public com.google.common.collect.FluentIterable<E> concat()
Combines all the pages into a single unmodifiable iterable. ex.FluentIterable
blobs = blobstore.list(...).concat(); for (StorageMetadata blob : blobs) { process(blob); } - See Also:
Iterators.concat(java.util.Iterator<? extends T>, java.util.Iterator<? extends T>)
-
-