Package org.apache.jackrabbit.webdav
Class DavResourceIteratorImpl
- java.lang.Object
-
- org.apache.jackrabbit.webdav.DavResourceIteratorImpl
-
- All Implemented Interfaces:
java.util.Iterator<DavResource>
,DavResourceIterator
public class DavResourceIteratorImpl extends java.lang.Object implements DavResourceIterator
DavResourceIteratorImpl
implementation of theDavResourceIterator
interface.
NOTE:remove()
is not implemented.
-
-
Field Summary
Fields Modifier and Type Field Description static DavResourceIterator
EMPTY
-
Constructor Summary
Constructors Constructor Description DavResourceIteratorImpl(java.util.List<DavResource> list)
Create a new DavResourceIterator from the specified list.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
DavResource
next()
DavResource
nextResource()
Returns the nextDavResource
in the iteratorvoid
remove()
int
size()
Returns the size of the initial list.
-
-
-
Field Detail
-
EMPTY
public static final DavResourceIterator EMPTY
-
-
Constructor Detail
-
DavResourceIteratorImpl
public DavResourceIteratorImpl(java.util.List<DavResource> list)
Create a new DavResourceIterator from the specified list.- Parameters:
list
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<DavResource>
- See Also:
Iterator.hasNext()
-
next
public DavResource next()
- Specified by:
next
in interfacejava.util.Iterator<DavResource>
- See Also:
Iterator.next()
-
nextResource
public DavResource nextResource()
Description copied from interface:DavResourceIterator
Returns the nextDavResource
in the iterator- Specified by:
nextResource
in interfaceDavResourceIterator
- Returns:
- the next
DavResource
- See Also:
DavResourceIterator.nextResource()
-
size
public int size()
Returns the size of the initial list.- Specified by:
size
in interfaceDavResourceIterator
- Returns:
- number of elements in the iterator.
- See Also:
DavResourceIterator.size()
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator<DavResource>
- See Also:
Iterator.remove()
-
-