Class PagedCollectionIterable<T,C extends BaseCollectionRepresentation<T>>

java.lang.Object
com.cumulocity.sdk.client.PagedCollectionIterable<T,C>
All Implemented Interfaces:
Iterable<T>, Iterator<T>

public class PagedCollectionIterable<T,C extends BaseCollectionRepresentation<T>> extends Object implements Iterable<T>, Iterator<T>
  • Constructor Details

    • PagedCollectionIterable

      public PagedCollectionIterable(PagedCollectionResource<T,? extends C> collectionResource, C collection)
    • PagedCollectionIterable

      public PagedCollectionIterable(PagedCollectionResource<T,? extends C> collectionResource, C collection, int limit)
  • Method Details

    • iterator

      public Iterator<T> iterator()
      Specified by:
      iterator in interface Iterable<T>
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<T>
    • reachedLimit

      public boolean reachedLimit()
    • next

      public T next()
      Specified by:
      next in interface Iterator<T>
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<T>