org.snmp4j.agent.request
Interface SubRequestIterator

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

public interface SubRequestIterator
extends java.util.Iterator<SubRequest>

The SubRequestIterator interface implements the Iterator interface for SubRequest instances.

Version:
2.0
Author:
Frank Fock

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

Method Detail

next

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

Specified by:
next in interface java.util.Iterator<SubRequest>
Returns:
an unprocessed SubRequest instance.
Throws:
java.util.NoSuchElementException - if there are no more elements available.

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<SubRequest>
Returns:
true if there are more sub-requests.

Copyright 2005-2010 Frank Fock (SNMP4J.org)

Copyright © 2011 SNMP4J.org. All Rights Reserved.