next method

int next()

Implementation

int next() {
  if (id == _maxScope) {
    id = 0;
  }

  return id += 1;
}