next

public abstract Optional<Page<M>> next()

Obtains the next page.

Return

the next page wrapped into Optional, or Optional.empty() if this page is the last one