if (pos >= max) {
debug("updateResult","Position `"+pos+"' is out of bound...");
continue;
}
final SnmpVarBind element= (SnmpVarBind) e.nextElement();
if (element == null) continue;
if (isDebugOn())
trace("updateResult", "Non repeaters Current element : " +
element + " from agent : " + agent);
final SnmpVarBind res = findVarBind(element,result[pos]);
if(res == null) continue;
result[pos] = res;
}
// Now update the values which have been repeated
// more than once.
int localR= size - nonRepeat;
for (int i = 2 ; i <= maxRepeat ; i++) {
for (int r = 0 ; r < localR ; r++) {
final int pos = (i-1)* globalR + translation[nonRepeat + r] ;
if (pos >= max)
return;
if (e.hasMoreElements() ==false)
return;
final SnmpVarBind element= (SnmpVarBind) e.nextElement();
if (element == null) continue;
if (isDebugOn())
trace("updateResult", "Repeaters Current element : " +
element + " from agent : " + agent);
final SnmpVarBind res = findVarBind(element, result[pos]);
if(res == null) continue;
result[pos] = res;
}