Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Stefan Wendelmann
Added: Jul 27, 2018 6:54 AM
Views: 5
Tags: no tags
  1. int leftOver = idents.size() % maxIn;
  2. // Chunks verarbeiten bei maxin 100 -> 0-100, 100-200 usw.
  3. for (int j = 0; j < idents.size() / maxIn; j++)
  4. {
  5. transferRecord(idents.subList(maxIn * j, ((j + 1) * maxIn)));
  6. }
  7. // Den Rest verarbeiten.
  8. if (leftOver > 0)
  9. {
  10. transferRecord(idents.subList(maxIn * (idents.size() / maxIn), maxIn * (idents.size() / maxIn) + leftOver));
  11. }