-
- All Superinterfaces:
java.util.Iterator<S>
- All Known Implementing Classes:
SnmpRequest.SnmpSubRequestIterator
,SubRequestIteratorSupport
public interface SubRequestIterator<S> extends java.util.Iterator<S>
TheSubRequestIterator
interface implements the Iterator interface forSubRequest
instances.- Version:
- 2.2
- Author:
- Frank Fock
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
hasNext()
Returnstrue
if there are more sub-requests to process.S
next()
Gets the next sub-request that is pending.
-
-
-
Method Detail
-
next
S next() throws java.util.NoSuchElementException
Gets the next sub-request that is pending.- Specified by:
next
in interfacejava.util.Iterator<S>
- Returns:
- an unprocessed
SubRequest
instance. - Throws:
java.util.NoSuchElementException
- if there are no more elements available.
-
hasNext
boolean hasNext()
Returnstrue
if there are more sub-requests to process. In other words, returnstrue
if next would return an element rather than throwing an exception.- Specified by:
hasNext
in interfacejava.util.Iterator<S>
- Returns:
true
if there are more sub-requests.
-
-