Package org.eclipse.jgit.revwalk
Class DateRevQueue
java.lang.Object
org.eclipse.jgit.revwalk.Generator
org.eclipse.jgit.revwalk.AbstractRevQueue
org.eclipse.jgit.revwalk.DateRevQueue
A queue of commits sorted by commit time order.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private DateRevQueue.Entry
private DateRevQueue.Entry
private DateRevQueue.Entry[]
private int
private int
private static final int
private int
Fields inherited from class org.eclipse.jgit.revwalk.AbstractRevQueue
EMPTY_QUEUE, outputType
Fields 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
Modifier and TypeMethodDescriptionvoid
Add a commit to the queue.(package private) boolean
anybodyHasFlag
(int f) private void
void
clear()
Remove all entries from this queue.(package private) boolean
everbodyHasFlag
(int f) private void
private DateRevQueue.Entry
next()
Return the next commit to the application, or the next generator.(package private) int
Obtain flags describing the output behavior of this generator.peek()
Peek at the next commit, without removing it.toString()
Methods inherited from class org.eclipse.jgit.revwalk.AbstractRevQueue
add, addParents, describe
Methods inherited from class org.eclipse.jgit.revwalk.Generator
shareFreeList
-
Field Details
-
REBUILD_INDEX_COUNT
private static final int REBUILD_INDEX_COUNT- See Also:
-
head
-
free
-
inQueue
private int inQueue -
sinceLastIndex
private int sinceLastIndex -
index
-
first
private int first -
last
private int last
-
-
Constructor Details
-
DateRevQueue
public DateRevQueue()Create an empty date queue. -
DateRevQueue
DateRevQueue(boolean firstParent) -
DateRevQueue
DateRevQueue(Generator s) throws MissingObjectException, IncorrectObjectTypeException, IOException
-
-
Method Details
-
add
Add a commit to the queue.This method always adds the commit, even if it is already in the queue or previously was in the queue but has already been removed. To control queue admission use
AbstractRevQueue.add(RevCommit, RevFlag)
.- Specified by:
add
in classAbstractRevQueue
- Parameters:
c
- commit to add.
-
next
Return the next commit to the application, or the next generator.Remove the first commit from the queue.
- Specified by:
next
in classAbstractRevQueue
- Returns:
- next available commit; null if no more are to be returned.
-
buildIndex
private void buildIndex() -
peek
Peek at the next commit, without removing it.- Returns:
- the next available commit; null if there are no commits left.
-
clear
public void clear()Remove all entries from this queue.- Specified by:
clear
in classAbstractRevQueue
-
everbodyHasFlag
boolean everbodyHasFlag(int f) - Specified by:
everbodyHasFlag
in classAbstractRevQueue
-
anybodyHasFlag
boolean anybodyHasFlag(int f) - Specified by:
anybodyHasFlag
in classAbstractRevQueue
-
outputType
int outputType()Description copied from class:Generator
Obtain flags describing the output behavior of this generator.- Overrides:
outputType
in classAbstractRevQueue
- Returns:
- one or more of the constants declared in this class, describing how this generator produces its results.
-
toString
-
newEntry
-
freeEntry
-