|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.cmis.CmsObjectListLimiter<A>
A - the content type of the listpublic class CmsObjectListLimiter<A>
Helper class to ease implementation of CMIS service methods which support paging.
This class works as an iterator for a given list, and limits the number of iterations based on skip/max parameters which are usually passed to the service methods.
| Constructor Summary | |
|---|---|
CmsObjectListLimiter(java.util.List<A> baseList,
java.math.BigInteger maxItems,
java.math.BigInteger skipCount)
Creates a new instance. |
|
| Method Summary | |
|---|---|
boolean |
hasMore()
Checks if there are more items left in the base list which were not returned. |
boolean |
hasNext()
|
java.util.Iterator<A> |
iterator()
|
A |
next()
|
void |
remove()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CmsObjectListLimiter(java.util.List<A> baseList,
java.math.BigInteger maxItems,
java.math.BigInteger skipCount)
baseList - the list over which we want to iteratemaxItems - the maximum number of itemsskipCount - the number of items to skip| Method Detail |
|---|
public boolean hasMore()
public boolean hasNext()
hasNext in interface java.util.Iterator<A>Iterator.hasNext()public java.util.Iterator<A> iterator()
iterator in interface java.lang.Iterable<A>Iterable.iterator()public A next()
next in interface java.util.Iterator<A>Iterator.next()public void remove()
remove in interface java.util.Iterator<A>Iterator.remove()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||