code: public RowResultSet<R> resultSet(int maxRows) {
          if (maxRows <= 0) {
              return new RowResultSet<R>(getRows());
          } // end of if
  
          return new RowResultSet<R>(getRows().subList(0, maxRows));
      }
docs: Returns result set from these rows.
  
  @param maxRows Limit for the maximum number of rows.
  If &lt;= 0 no limit will be set.
  If the limit is set and exceeded, the excess rows are silently dropped.
  @return ResultSet for this list of rows