Package org.apache.commons.discovery
Class ResourceIterator
- java.lang.Object
-
- org.apache.commons.discovery.ResourceIterator
-
- All Implemented Interfaces:
ResourceNameIterator
- Direct Known Subclasses:
ResourceClassIterator
public abstract class ResourceIterator extends java.lang.Object implements ResourceNameIterator
Iterator over discoveredResource.
-
-
Constructor Summary
Constructors Constructor Description ResourceIterator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract ResourcenextResource()Returns the nextResourcein the iteration.java.lang.StringnextResourceName()Returns the next resource name in the iteration.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.commons.discovery.ResourceNameIterator
hasNext
-
-
-
-
Constructor Detail
-
ResourceIterator
public ResourceIterator()
-
-
Method Detail
-
nextResource
public abstract Resource nextResource()
Returns the nextResourcein the iteration.- Returns:
- The next resource in the iteration
-
nextResourceName
public java.lang.String nextResourceName()
Returns the next resource name in the iteration.- Specified by:
nextResourceNamein interfaceResourceNameIterator- Returns:
- The next resource name in the iteration
-
-