- java.lang.Object
-
- org.snmp4j.agent.request.SnmpRequest.SnmpSubRequestIterator
-
- All Implemented Interfaces:
Iterator<SnmpRequest.SnmpSubRequest>,SubRequestIterator<SnmpRequest.SnmpSubRequest>
- Enclosing class:
- SnmpRequest
public class SnmpRequest.SnmpSubRequestIterator extends Object implements SubRequestIterator<SnmpRequest.SnmpSubRequest>
TheSnmpRequest.SnmpSubRequestIteratorimplements an iterator over the GETBULK repetitions of a subrequest.- Version:
- 3.0.4
- Author:
- Frank Fock
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSnmpSubRequestIterator()protectedSnmpSubRequestIterator(int offset, int increment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)inthashCode()booleanhasNext()hasNextSnmpRequest.SnmpSubRequestnext()Gets the next sub-request that is pending.voidremove()protected voidsetNoAppending(boolean noAppending)-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Method Detail
-
setNoAppending
protected void setNoAppending(boolean noAppending)
-
hasNext
public boolean hasNext()
hasNext- Specified by:
hasNextin interfaceIterator<SnmpRequest.SnmpSubRequest>- Specified by:
hasNextin interfaceSubRequestIterator<SnmpRequest.SnmpSubRequest>- Returns:
- boolean
-
next
public SnmpRequest.SnmpSubRequest next()
Description copied from interface:SubRequestIteratorGets the next sub-request that is pending.- Specified by:
nextin interfaceIterator<SnmpRequest.SnmpSubRequest>- Specified by:
nextin interfaceSubRequestIterator<SnmpRequest.SnmpSubRequest>- Returns:
- an unprocessed
SubRequestinstance.
-
remove
public void remove()
- Specified by:
removein interfaceIterator<SnmpRequest.SnmpSubRequest>
-
-