if (numberOfObjectsPerBatch() == 0) { return 0; } if (_objectList.size() == 0) { return 1; } return (_objectList.size() - 1) / numberOfObjectsPerBatch() + 1; }
if (numberOfObjectsPerBatch() == 0) { return 0; } int size = size(); if (size == 0) { return 1; } return (size - 1) / numberOfObjectsPerBatch() + 1; }
  public int batchCount() {    if (numberOfObjectsPerBatch() == 0) {      return 0;    }    if (_objectList.size() == 0) {      return 1;    }    return (_objectList.size() - 1) / numberOfObjectsPerBatch() + 1;  }