|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.lexevs.paging.AbstractPageableIterator<T>
public abstract class AbstractPageableIterator<T>
The Class AbstractPageableIterator.
Nested Class Summary | |
---|---|
static class |
AbstractPageableIterator.NextDecorator<T>
The Class NextDecorator. |
static class |
AbstractPageableIterator.Pager<T>
The Class Pager. |
Constructor Summary | |
---|---|
protected |
AbstractPageableIterator()
Instantiates a new abstract pageable iterator. |
|
AbstractPageableIterator(int pageSize)
Instantiates a new abstract pageable iterator. |
Method Summary | |
---|---|
protected T |
decorateNext(T item)
Decorate next. |
protected java.util.List<? extends T> |
doExecutePage()
Do execute page. |
protected abstract java.util.List<? extends T> |
doPage(int currentPosition,
int pageSize)
Returns a page of results. |
protected int |
getGlobalPosition()
Gets the global position. |
protected int |
getPageSize()
Gets the page size. |
boolean |
hasNext()
|
protected boolean |
isDecorateNext()
Checks if is decorate next. |
protected boolean |
isPageNeeded()
Checks if is page needed. |
java.util.Iterator<T> |
iterator()
|
T |
next()
|
protected void |
page()
Page. |
protected void |
pageIfNecessary()
Page if necessary. |
void |
remove()
|
protected void |
setDecorateNext(boolean decorateNext)
Sets the decorate next. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractPageableIterator()
public AbstractPageableIterator(int pageSize)
pageSize
- the page sizeMethod Detail |
---|
public java.util.Iterator<T> iterator()
iterator
in interface java.lang.Iterable<T>
public boolean hasNext()
hasNext
in interface java.util.Iterator<T>
public T next()
next
in interface java.util.Iterator<T>
protected void pageIfNecessary()
public void remove()
remove
in interface java.util.Iterator<T>
protected boolean isPageNeeded()
protected final void page()
protected java.util.List<? extends T> doExecutePage()
protected abstract java.util.List<? extends T> doPage(int currentPosition, int pageSize)
currentPosition
- the current positionpageSize
- the page size
protected T decorateNext(T item)
item
- the item
protected void setDecorateNext(boolean decorateNext)
decorateNext
- the new decorate nextprotected boolean isDecorateNext()
protected int getPageSize()
protected int getGlobalPosition()
|
Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |