Collection floodsToProcess = floods.values(); Iterator floodIter = floodsToProcess.iterator(); while(floodIter.hasNext()) { Flood flood = (Flood)floodIter.next(); flood.LoopOnce(); }
Collection floodsToProcess = floods.values(); Iterator floodIter = floodsToProcess.iterator(); while(floodIter.hasNext()) { Flood flood = (Flood)floodIter.next(); flood.LoopOnce(); }  if( pendingpeers != null ) { for(int peerIndex = 0; peerIndex < pendingpeers.length; peerIndex++) { if( pendingpeers[peerIndex] != null) { pendingpeers[peerIndex].LoopOnce(); } } }
  public void LoopOnce()  {  	Collection floodsToProcess = floods.values();  	Iterator floodIter = floodsToProcess.iterator();  	while(floodIter.hasNext())  	{  		Flood flood = (Flood)floodIter.next();  		flood.LoopOnce();  	}  }