public abstract class

PaginatedIterable

extends Object
implements Iterable<T>
java.lang.Object
   ↳ org.mule.module.fws.api.PaginatedIterable<T, Page>
Known Direct Subclasses

Summary

Public Constructors
PaginatedIterable()
Public Methods
Iterator<T> iterator()
Protected Methods
abstract Page firstPage()
Answers the first page of the paginated result
abstract boolean hasNextPage(Page page)
Answers if the given page is not the last one
abstract Page nextPage(Page currentPage)
Given a page, answers the next page
abstract Iterator<T> pageIterator(Page page)
Answers an iterator for the current page
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.lang.Iterable

Public Constructors

public PaginatedIterable ()

Public Methods

public Iterator<T> iterator ()

Protected Methods

protected abstract Page firstPage ()

Answers the first page of the paginated result

protected abstract boolean hasNextPage (Page page)

Answers if the given page is not the last one

Parameters
page
Returns
  • if current page is the last one or not

protected abstract Page nextPage (Page currentPage)

Given a page, answers the next page

Parameters
currentPage
Returns
  • the next page

protected abstract Iterator<T> pageIterator (Page page)

Answers an iterator for the current page

Parameters
page
Returns
  • the givne page iterator