- java.lang.Object
-
- org.snmp4j.agent.request.SnmpRequest.SnmpSubRequestIterator
-
- All Implemented Interfaces:
java.util.Iterator<SnmpRequest.SnmpSubRequest>,SubRequestIterator<SnmpRequest.SnmpSubRequest>
- Enclosing class:
- SnmpRequest
public class SnmpRequest.SnmpSubRequestIterator extends java.lang.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(java.lang.Object other)inthashCode()booleanhasNext()hasNextSnmpRequest.SnmpSubRequestnext()Gets the next sub-request that is pending.voidremove()protected voidsetNoAppending(boolean noAppending)
-
-
-
Method Detail
-
setNoAppending
protected void setNoAppending(boolean noAppending)
-
hasNext
public boolean hasNext()
hasNext- Specified by:
hasNextin interfacejava.util.Iterator<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 interfacejava.util.Iterator<SnmpRequest.SnmpSubRequest>- Specified by:
nextin interfaceSubRequestIterator<SnmpRequest.SnmpSubRequest>- Returns:
- an unprocessed
SubRequestinstance.
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator<SnmpRequest.SnmpSubRequest>
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-