Pagepublic class Page extends Object implements Serializable
Fields Summary |
---|
public static final Page | EMPTY_PAGE | Collection | list | int | start | boolean | hasNext |
Constructors Summary |
---|
public Page(Collection col, int start, boolean hasNext)
//~ Constructors -----------------------------------------------------------
this.list = new ArrayList( col );
this.start = start;
this.hasNext = hasNext;
|
Methods Summary |
---|
public java.util.Collection | getList()
return list;
| public int | getSize()
return list.size( );
| public int | getStartOfNextPage()
return start + list.size( );
| public int | getStartOfPreviousPage()
return Math.max( start - list.size( ), 0 );
| public boolean | isNextPageAvailable()
return hasNext;
| public boolean | isPreviousPageAvailable()
return start > 0;
|
|