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

    Modifier and Type
    Method
    Description
    com.google.common.collect.FluentIterable<E>
    Combines all the pages into a single unmodifiable iterable.
    create(com.google.common.base.Supplier<com.google.common.collect.FluentIterable<E>> nextIterable)
     
    Iterator<com.google.common.collect.FluentIterable<E>>
     

    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 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

      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>)