code: private void setTypes(int start, int limit, byte newType) {
          for (int i = start; i < limit; ++i) {
              resultTypes[i] = newType;
          }
      }
docs: Set resultTypes from start up to (but not including) limit to newType.