Class 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
    • 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)
      • iterator

        public Iterator<com.google.common.collect.FluentIterable<E>> iterator()
      • 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>)