Package sonia.scm.repository
Class ChangesetPagingResult
java.lang.Object
sonia.scm.repository.ChangesetPagingResult
- All Implemented Interfaces:
Serializable
,Iterable<Changeset>
The changeset paging result is used to do a paging over the
Changeset
s of a Repository
.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionChangesetPagingResult
(int total, List<Changeset> changesets) Constructs a new changeset paging result.ChangesetPagingResult
(int total, List<Changeset> changesets, String branchName) Constructs a new changeset paging result for a specific branch. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ChangesetPagingResult
Constructs a new changeset paging result.- Parameters:
total
- total number of changesetschangesets
- current list of fetched changesets
-
ChangesetPagingResult
Constructs a new changeset paging result for a specific branch.- Parameters:
total
- total number of changesetschangesets
- current list of fetched changesetsbranchName
- branch name this result was created for
-
-
Method Details
-
iterator
Returns an iterator which can iterate over the current list of changesets. -
getChangesets
Returns the current list of changesets. -
getTotal
public int getTotal()Returns the total number of changesets. -
getBranchName
Returns the branch name this result was created for. This can either be an explicit branch ("give me all changesets for branch xyz") or an implicit one ("give me the changesets for the default").
-