public class Page extends Object
| Constructor and Description |
|---|
Page(int pageIndex,
int capacity)
Create a new page at a certain index, with a certain capacity ,with a maximum number of element (=capacity) and a total
number of elements to -1 (infinite).
|
Page(int pageIndex,
int capacity,
int numberOfElements)
Create a new page at a certain index, with a certain capacity ,with a certain number of element and a total
number of elements to -1 (infinite).
|
Page(int pageIndex,
int capacity,
int numberOfElements,
long totalNumberOfElements)
Create a new page at a certain index, with a certain capacity ,with a certain number of element and fixed total
number of elements.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCapacity() |
int |
getIndex() |
int |
getNumberOfElements() |
long |
getTotalNumberOfElements() |
Page |
next() |
String |
toString() |
public Page(int pageIndex,
int capacity)
pageIndex - start with 0capacity - the number of elementpublic Page(int pageIndex,
int capacity,
int numberOfElements)
pageIndex - start with 0capacity - the page capacity sizenumberOfElements - the number of elementpublic Page(int pageIndex,
int capacity,
int numberOfElements,
long totalNumberOfElements)
pageIndex - start with 0capacity - the page capacity sizenumberOfElements - actual number of elementpublic int getIndex()
public int getCapacity()
public int getNumberOfElements()
public long getTotalNumberOfElements()
public Page next()
Copyright © 2013-2015–2015. All rights reserved.