/** * Page comments on commit with given SHA-1 * * @param repository * @param sha * @param size * @return page iterator over comments */ public PageIterator<CommitComment> pageComments( IRepositoryIdProvider repository, String sha, int size) { return pageComments(repository, sha, PAGE_FIRST, size); }
/** * Page all comments on all commits in the given repository * * @param repository * @return page iterator over comments */ public PageIterator<CommitComment> pageComments( IRepositoryIdProvider repository) { return pageComments(repository, PAGE_SIZE); }
/** * Page comments on commit with given SHA-1 * * @param repository * @param sha * @return page iterator over comments */ public PageIterator<CommitComment> pageComments( IRepositoryIdProvider repository, String sha) { return pageComments(repository, sha, PAGE_SIZE); }
/** * Page all comments on all commits in the given repository * * @param repository * @param size * @return page iterator over comments */ public PageIterator<CommitComment> pageComments( IRepositoryIdProvider repository, int size) { return pageComments(repository, PAGE_FIRST, size); }
/** * Get all comments on all commits in the given repository * * @param repository * @return non-null but possibly empty list of commits * @throws IOException */ public List<CommitComment> getComments(IRepositoryIdProvider repository) throws IOException { return getAll(pageComments(repository)); }
/** * Get all comments on commit with given SHA-1 * * @param repository * @param sha * @return non-null but possibly empty list of commits * @throws IOException */ public List<CommitComment> getComments(IRepositoryIdProvider repository, String sha) throws IOException { return getAll(pageComments(repository, sha)); }