java.lang.Object
org.snmp4j.agent.request.SnmpRequest.SnmpSubRequestIterator
- All Implemented Interfaces:
Iterator<SnmpRequest.SnmpSubRequest>
,SubRequestIterator<SnmpRequest.SnmpSubRequest>
- Direct Known Subclasses:
SnmpRequest.SortedSnmpSubRequestIterator
- 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
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected int
protected boolean
-
Constructor Summary
ModifierConstructorDescriptionprotected
protected
SnmpSubRequestIterator
(int offset, int increment) -
Method Summary
Modifier and TypeMethodDescriptionboolean
protected SnmpRequest.SnmpSubRequest
int
hashCode()
boolean
hasNext()
hasNextnext()
Gets the next sub-request that is pending.void
remove()
protected void
setNoAppending
(boolean noAppending) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
cursor
protected int cursor -
increment
protected int increment -
noAppending
protected boolean noAppending
-
-
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:
hasNext
in interfaceIterator<SnmpRequest.SnmpSubRequest>
- Specified by:
hasNext
in interfaceSubRequestIterator<SnmpRequest.SnmpSubRequest>
- Returns:
- boolean
-
next
Description copied from interface:SubRequestIterator
Gets the next sub-request that is pending.- Specified by:
next
in interfaceIterator<SnmpRequest.SnmpSubRequest>
- Specified by:
next
in interfaceSubRequestIterator<SnmpRequest.SnmpSubRequest>
- Returns:
- an unprocessed
SubRequest
instance.
-
getSnmpSubRequest
-
remove
public void remove()- Specified by:
remove
in interfaceIterator<SnmpRequest.SnmpSubRequest>
-
equals
-
hashCode
public int hashCode()
-