org.priha.util
Class GenericIterator
java.lang.Object
org.priha.util.GenericIterator
- All Implemented Interfaces:
- java.util.Iterator
- Direct Known Subclasses:
- LazyNodeIteratorImpl, LazyPropertyIteratorImpl, NodeIteratorImpl, NodeTypeIteratorImpl, PropertyIteratorImpl, VersionIteratorImpl
public abstract class GenericIterator
- extends java.lang.Object
- implements java.util.Iterator
Provides a base class for the different Iterators that JCR defines.
- Author:
- jalkanen
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_iterator
protected java.util.ListIterator<?> m_iterator
m_position
protected int m_position
m_size
protected int m_size
m_list
protected java.util.List<?> m_list
GenericIterator
public GenericIterator(java.util.List<?> list)
getPosition
public long getPosition()
getSize
public long getSize()
skip
public void skip(long skipNum)
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface java.util.Iterator
hasPrevious
public boolean hasPrevious()
next
public java.lang.Object next()
- Specified by:
next
in interface java.util.Iterator
previous
public java.lang.Object previous()
remove
public void remove()
- Specified by:
remove
in interface java.util.Iterator