Package org.eclipse.jgit.revwalk
Class StartGenerator
java.lang.Object
org.eclipse.jgit.revwalk.Generator
org.eclipse.jgit.revwalk.StartGenerator
Initial RevWalk generator that bootstraps a new walk.
Initially RevWalk starts with this generator as its chosen implementation.
The first request for a RevCommit from the RevWalk instance calls to our
next() method, and we replace ourselves with the best Generator
implementation available based upon the current RevWalk configuration.
-
Field Summary
FieldsFields inherited from class org.eclipse.jgit.revwalk.Generator
firstParent, HAS_REWRITE, HAS_UNINTERESTING, NEEDS_REWRITE, SORT_COMMIT_TIME_DESC, SORT_TOPO -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.eclipse.jgit.revwalk.Generator
shareFreeList
-
Field Details
-
walker
-
-
Constructor Details
-
StartGenerator
StartGenerator(RevWalk w)
-
-
Method Details
-
outputType
int outputType()Description copied from class:GeneratorObtain flags describing the output behavior of this generator.- Specified by:
outputTypein classGenerator- Returns:
- one or more of the constants declared in this class, describing how this generator produces its results.
-
next
Description copied from class:GeneratorReturn the next commit to the application, or the next generator.- Specified by:
nextin classGenerator- Returns:
- next available commit; null if no more are to be returned.
- Throws:
MissingObjectExceptionIncorrectObjectTypeExceptionIOException
-