org.sixdml
Class SixdmlResourceIterator
java.lang.Object
|
+--org.sixdml.SixdmlResourceIterator
- All Implemented Interfaces:
- ResourceIterator
- public class SixdmlResourceIterator
- extends Object
- implements ResourceIterator
SixdmlResourceIterator.java
This class is used to iterate over a set of resources.
Created: Thu Jan 10 22:06:18 2002
- Version:
- 1.0
- Author:
- Dare Obasanjo
|
Field Summary |
private Iterator |
it
The Iterator object that actually holds the Resources. |
|
Constructor Summary |
private |
SixdmlResourceIterator()
Default constructor private to prevent creation of a SixdmlResourceIterator that
has no underlying Iterator. |
(package private) |
SixdmlResourceIterator(Iterator it)
Initializes the class using the Iterator passed in as an argument. |
|
Method Summary |
boolean |
hasMoreResources()
Returns true as long as there are still more resources to be iterated. |
static void |
main(String[] args)
Main used for testing class. |
Resource |
nextResource()
Returns the next Resource instance in the iterator. |
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
it
private Iterator it
- The Iterator object that actually holds the Resources.
SixdmlResourceIterator
private SixdmlResourceIterator()
- Default constructor private to prevent creation of a SixdmlResourceIterator that
has no underlying Iterator.
SixdmlResourceIterator
SixdmlResourceIterator(Iterator it)
- Initializes the class using the Iterator passed in as an argument.
- Parameters:
it - an iterator that will be used to initialize this class.
hasMoreResources
public boolean hasMoreResources()
- Returns true as long as there are still more resources to be iterated.
- Specified by:
hasMoreResources in interface ResourceIterator
- Returns:
- true as long as there are still more resources to be iterated.
nextResource
public Resource nextResource()
- Returns the next Resource instance in the iterator.
- Specified by:
nextResource in interface ResourceIterator
- Returns:
- the next Resource instance in the iterator.
main
public static void main(String[] args)
- Main used for testing class.
- Parameters:
args - IGNORED