code: public static <T> Pagination<T> build(final Long offset, final Long limit, final Collection<T> elements) {
          return build(offset, limit, elements.size(), elements);
      }
docs: Notes: elements should be the entire records set (regardless of filtering) otherwise maxNbRecords won't be accurate