org.snmp4j.agent.request
Interface SubRequestIterator

All Superinterfaces:
java.util.Iterator
All Known Implementing Classes:
SnmpRequest.SnmpSubRequestIterator, SubRequestIteratorSupport

public interface SubRequestIterator
extends java.util.Iterator

Version:
1.0
Author:
Frank Fock

Method Summary
 boolean hasNext()
          Returns true if there are more sub-requests to process.
 SubRequest nextSubRequest()
          Gets the next sub-request that is pending.
 
Methods inherited from interface java.util.Iterator
next, remove
 

Method Detail

nextSubRequest

SubRequest nextSubRequest()
                          throws java.util.NoSuchElementException
Gets the next sub-request that is pending.

Returns:
an unprocessed SnmpSubRequest instance.
Throws:
java.util.NoSuchElementException

hasNext

boolean hasNext()
Returns true if there are more sub-requests to process. In other words, returns true if next would return an element rather than throwing an exception.

Specified by:
hasNext in interface java.util.Iterator
Returns:
true if there are more sub-requests.

Copyright 2005-2008 Frank Fock (SNMP4J.org)