|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hippoecm.hst.mock.content.beans.standard.MockHippoBeanIterator
public class MockHippoBeanIterator
Mock implementation of HippoBeanIterator
for testing purposes.
Constructor Summary | |
---|---|
MockHippoBeanIterator()
|
|
MockHippoBeanIterator(List<HippoBean> hippoDocuments)
|
Method Summary | |
---|---|
long |
getPosition()
Returns the current position within the iterator. |
long |
getSize()
Returns the number of elements in the iterator. |
boolean |
hasNext()
|
HippoBean |
next()
|
HippoBean |
nextHippoBean()
Returns the next HippoBean in the iteration. |
void |
remove()
|
void |
skip(int skipNum)
Skip a number of elements in the iterator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MockHippoBeanIterator()
public MockHippoBeanIterator(List<HippoBean> hippoDocuments)
Method Detail |
---|
public HippoBean nextHippoBean()
HippoBeanIterator
HippoBean
in the iteration. Note this method is allowed to return null
when the backing jcr node cannot be mapped to a HippoBean.
nextHippoBean
in interface HippoBeanIterator
HippoBean
in the iteration or null
if the jcr node cannot be mapped
to a HippoBean
public void skip(int skipNum)
HippoBeanIterator
skip
in interface HippoBeanIterator
skipNum
- the non-negative number of elements to skippublic long getSize()
HippoBeanIterator
getSize
in interface HippoBeanIterator
public long getPosition()
HippoBeanIterator
next
call.
Note that this method does not check if there is a next element,
i.e. an empty iterator will always return 0.
getPosition
in interface HippoBeanIterator
public boolean hasNext()
hasNext
in interface Iterator<HippoBean>
public HippoBean next()
next
in interface Iterator<HippoBean>
public void remove()
remove
in interface Iterator<HippoBean>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |