public abstract class AbstractAssertedVSResolvedConceptReferenceIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>, java.lang.Iterable<T>, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
AbstractAssertedVSResolvedConceptReferenceIterator.Pager<T>
The Class Pager.
|
static class |
AbstractAssertedVSResolvedConceptReferenceIterator.RemainingRefresher<T> |
Modifier and Type | Field and Description |
---|---|
protected int |
inCachePosition
The in cache position.
|
protected boolean |
inPagingNext |
protected boolean |
isExhausted |
protected int |
maxValueSets |
protected AbstractAssertedVSResolvedConceptReferenceIterator.Pager<T> |
pager
The pager.
|
protected int |
pageSize
The page size.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractAssertedVSResolvedConceptReferenceIterator()
Instantiates a new abstract pageable iterator.
|
|
AbstractAssertedVSResolvedConceptReferenceIterator(int pageSize)
Instantiates a new abstract pageable iterator.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.List<? extends T> |
doExecutePage()
Do execute page.
|
protected java.util.List<? extends T> |
doExecutePageOnSize(int size,
int remains)
Do execute page.
|
protected abstract java.util.List<? extends T> |
doPage(int currentPosition,
int pageSize)
Returns a page of results.
|
protected abstract java.util.List<? extends T> |
doPage(int currentPosition,
int pageSize,
int remains) |
protected void |
emptyCache() |
protected java.util.List<? extends T> |
getCache() |
protected int |
getGlobalPosition()
Gets the global position.
|
protected int |
getPageSize()
Gets the page size.
|
int |
getRefreshedRemaining() |
boolean |
hasNext() |
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.
|
protected void |
pageIfNecessary(int size,
int remains) |
protected void |
pageOnSize(int size,
int remains) |
java.util.List<T> |
protoNext(int size,
int remains) |
protected abstract int |
refreshNumberRemaining(int remaining) |
void |
refreshRemaining(int refreshRemain) |
void |
remove() |
protected void |
setGlobalPostion(int increment) |
protected int pageSize
protected int inCachePosition
protected int maxValueSets
protected AbstractAssertedVSResolvedConceptReferenceIterator.Pager<T> pager
protected boolean inPagingNext
protected boolean isExhausted
protected AbstractAssertedVSResolvedConceptReferenceIterator()
public AbstractAssertedVSResolvedConceptReferenceIterator(int pageSize)
pageSize
- the page sizepublic java.util.Iterator<T> iterator()
iterator
in interface java.lang.Iterable<T>
public boolean hasNext()
hasNext
in interface java.util.Iterator<T>
public java.util.List<T> protoNext(int size, int remains)
protected void pageIfNecessary()
protected void pageIfNecessary(int size, int remains)
public void remove()
remove
in interface java.util.Iterator<T>
protected boolean isPageNeeded()
protected final void page()
protected final void pageOnSize(int size, int remains)
protected java.util.List<? extends T> doExecutePage()
protected java.util.List<? extends T> doExecutePageOnSize(int size, int remains)
protected abstract java.util.List<? extends T> doPage(int currentPosition, int pageSize)
currentPosition
- the current positionpageSize
- the page sizeprotected abstract java.util.List<? extends T> doPage(int currentPosition, int pageSize, int remains)
protected abstract int refreshNumberRemaining(int remaining)
public int getRefreshedRemaining()
public void refreshRemaining(int refreshRemain)
protected int getPageSize()
protected int getGlobalPosition()
protected void setGlobalPostion(int increment)
protected java.util.List<? extends T> getCache()
protected void emptyCache()