- 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.SnmpSubRequestIterator
implements an iterator over the GETBULK repetitions of a subrequest.- Version:
- 3.0.4
- Author:
- Frank Fock
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SnmpSubRequestIterator()
protected
SnmpSubRequestIterator(int offset, int increment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
int
hashCode()
boolean
hasNext()
hasNextSnmpRequest.SnmpSubRequest
next()
Gets the next sub-request that is pending.void
remove()
protected void
setNoAppending(boolean noAppending)
-
-
-
Method Detail
-
setNoAppending
protected void setNoAppending(boolean noAppending)
-
hasNext
public boolean hasNext()
hasNext- Specified by:
hasNext
in interfacejava.util.Iterator<SnmpRequest.SnmpSubRequest>
- Specified by:
hasNext
in interfaceSubRequestIterator<SnmpRequest.SnmpSubRequest>
- Returns:
- boolean
-
next
public SnmpRequest.SnmpSubRequest next()
Description copied from interface:SubRequestIterator
Gets the next sub-request that is pending.- Specified by:
next
in interfacejava.util.Iterator<SnmpRequest.SnmpSubRequest>
- Specified by:
next
in interfaceSubRequestIterator<SnmpRequest.SnmpSubRequest>
- Returns:
- an unprocessed
SubRequest
instance.
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator<SnmpRequest.SnmpSubRequest>
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-