Class BroadleafPagingStreams.PagingIterator<T>

java.lang.Object
com.broadleafcommerce.data.tracking.core.repository.support.BroadleafPagingStreams.PagingIterator<T>
All Implemented Interfaces:
Iterator<T>
Enclosing class:
BroadleafPagingStreams

public static final class BroadleafPagingStreams.PagingIterator<T> extends Object implements Iterator<T>
An iterator over a large set of elements that relies on a PageSource to fetch data in chunks as necessary.
  • Constructor Details

    • PagingIterator

      public PagingIterator(PageSource<T> source, org.springframework.data.domain.Pageable firstPageRequest)
  • Method Details

    • hasNext

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

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