}
public boolean hasNext() {
AgentXPDU reqPDU = requestEvent.getCommand();
if (reqPDU.getType() == AgentXPDU.AGENTX_GETBULK_PDU) {
AgentXGetBulkPDU bulkPDU = (AgentXGetBulkPDU)reqPDU;
if (cursor < Math.min(bulkPDU.size(), bulkPDU.getNonRepeaters())) {
return true;
}
else {
if (cursor < bulkPDU.getNonRepeaters() +
bulkPDU.getMaxRepetitions() * getRepeaterCount()) {
List lastRow = lastRow();
if (lastRow != null) {
boolean allEndOfMibView = true;
for (Iterator it = lastRow.iterator(); it.hasNext();) {
SubRequest sreq = (SubRequest) it.next();