public class PrefetchingArticleIterator extends Object implements ArticleIterator
Constructor and Description |
---|
PrefetchingArticleIterator(ObjectLoader pLoader,
int[] pArticleIds)
Deprecated.
Creates an ArticleIterator that iterates over the
Articles with the given ids.
|
PrefetchingArticleIterator(ObjectLoader pLoader,
int[] pArticleIds,
int pPrefetchSize)
Deprecated.
Creates an ArticleIterator that iterates over the
Articles with the given ids.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Deprecated.
|
Object |
next()
Deprecated.
Returns the next Article in this Iterator.
|
Article |
nextArticle()
Deprecated.
Returns the next Article in this Iterator.
|
void |
remove()
Deprecated.
Remove is not supported for this Iterator.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public PrefetchingArticleIterator(ObjectLoader pLoader, int[] pArticleIds)
pLoader
- the ObjectLoader to load Articles from.pArticleIds
- ids of Articles to iterate over.IllegalArgumentException
- if pLoader or
pArticleIds is nullpublic PrefetchingArticleIterator(ObjectLoader pLoader, int[] pArticleIds, int pPrefetchSize)
pLoader
- the ObjectLoader to load Articles from.pArticleIds
- ids of Articles to iterate over.pPrefetchSize
- the number of Articles to prefetch and
cache.IllegalArgumentException
- if pLoader or
pArticleIds is null, or pPrefetchSize <= 0public void remove()
remove
in interface Iterator
UnsupportedOperationException
- allways.public Object next()
ArticleIterator
next
in interface Iterator
next
in interface ArticleIterator
ArticleIterator.nextArticle()
public Article nextArticle()
ArticleIterator
nextArticle
in interface ArticleIterator
© 1998- 2018 Stibo DX