org.snmp4j.agent.agentx.subagent
Class AgentXRequest.AgentXSubRequestIterator

java.lang.Object
  extended by org.snmp4j.agent.agentx.subagent.AgentXRequest.AgentXSubRequestIterator
All Implemented Interfaces:
java.util.Iterator<org.snmp4j.agent.request.SubRequest>, org.snmp4j.agent.request.SubRequestIterator
Enclosing class:
AgentXRequest

public class AgentXRequest.AgentXSubRequestIterator
extends java.lang.Object
implements org.snmp4j.agent.request.SubRequestIterator

The AgentXSubRequestIterator iterates over the subrequests in a AgentX request. In case of bulk operations, it also may physically append new sub-request instances while iterating, until the bulk operations limits are reached.

Version:
1.0
Author:
Frank Fock

Constructor Summary
protected AgentXRequest.AgentXSubRequestIterator()
           
protected AgentXRequest.AgentXSubRequestIterator(int offset, int increment)
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
 int hashCode()
           
 boolean hasNext()
           
 org.snmp4j.agent.request.SubRequest next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgentXRequest.AgentXSubRequestIterator

protected AgentXRequest.AgentXSubRequestIterator()

AgentXRequest.AgentXSubRequestIterator

protected AgentXRequest.AgentXSubRequestIterator(int offset,
                                                 int increment)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<org.snmp4j.agent.request.SubRequest>
Specified by:
hasNext in interface org.snmp4j.agent.request.SubRequestIterator

next

public org.snmp4j.agent.request.SubRequest next()
Specified by:
next in interface java.util.Iterator<org.snmp4j.agent.request.SubRequest>
Specified by:
next in interface org.snmp4j.agent.request.SubRequestIterator

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<org.snmp4j.agent.request.SubRequest>

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

Copyright 2005-2011 Frank Fock (SNMP4J.org)

Copyright © 2011 SNMP4J.org. All Rights Reserved.