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>
The
SnmpRequest.SnmpSubRequestIterator implements an iterator over the GETBULK repetitions of a subrequest.- Version:
- 3.0.4
- Author:
- Frank Fock
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedSnmpSubRequestIterator(int offset, int increment) -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()booleanhasNext()hasNextnext()Gets the next sub-request that is pending.voidremove()protected voidsetNoAppending(boolean noAppending) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
SnmpSubRequestIterator
protected SnmpSubRequestIterator() -
SnmpSubRequestIterator
protected SnmpSubRequestIterator(int offset, int increment)
-
-
Method Details
-
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
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>
-
equals
-
hashCode
public int hashCode()
-