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

      • PagingIterator

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

      • hasNext

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

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