limit method

void limit (int i)

Limit the number of results returned by a query.

Implementation

void limit(int i) {
  if (_limitClause != null) {
    throw StanzaException(
        'Cannot have more than one limit clause in a query.');
  }
  _limitClause = LimitClause(i);
}