T
- the page element typepublic abstract class Page<T> extends Object implements Iterable<T>
Constructor and Description |
---|
Page() |
Modifier and Type | Method and Description |
---|---|
abstract List<T> |
content()
The page content.
|
boolean |
isEmpty()
Whether this page is empty, i.e., does not contain any elements.
|
Iterator<T> |
iterator()
Returns an iterator that traverses the content of this page.
|
abstract int |
page()
The page number of this page.
|
abstract int |
size()
The number of elements in this page.
|
abstract int |
totalSize()
The total number of elements across all pages.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public abstract int page()
public abstract int size()
public abstract int totalSize()
public final boolean isEmpty()
true
if empty, false
otherwiseCopyright © 2016–2019 CLX Communications. All rights reserved.