Package org.eclipse.jgit.revwalk
Class FIFORevQueue
- java.lang.Object
-
- org.eclipse.jgit.revwalk.Generator
-
- org.eclipse.jgit.revwalk.AbstractRevQueue
-
- org.eclipse.jgit.revwalk.BlockRevQueue
-
- org.eclipse.jgit.revwalk.FIFORevQueue
-
public class FIFORevQueue extends BlockRevQueue
A queue of commits in FIFO order.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jgit.revwalk.BlockRevQueue
BlockRevQueue.Block, BlockRevQueue.BlockFreeList
-
-
Field Summary
Fields Modifier and Type Field Description private BlockRevQueue.Blockheadprivate BlockRevQueue.Blocktail-
Fields inherited from class org.eclipse.jgit.revwalk.BlockRevQueue
free
-
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 Constructor Description FIFORevQueue()Create an empty FIFO queue.FIFORevQueue(boolean firstParent)FIFORevQueue(Generator s)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(RevCommit c)Add a commit to the queue.(package private) booleananybodyHasFlag(int f)voidclear()Remove all entries from this queue.(package private) booleaneverbodyHasFlag(int f)RevCommitnext()Return the next commit to the application, or the next generator.(package private) voidremoveFlag(int f)java.lang.StringtoString()voidunpop(RevCommit c)Insert the commit pointer at the front of the queue.-
Methods inherited from class org.eclipse.jgit.revwalk.BlockRevQueue
shareFreeList
-
Methods inherited from class org.eclipse.jgit.revwalk.AbstractRevQueue
add, addParents, describe, outputType
-
-
-
-
Field Detail
-
head
private BlockRevQueue.Block head
-
tail
private BlockRevQueue.Block tail
-
-
Constructor Detail
-
FIFORevQueue
public FIFORevQueue()
Create an empty FIFO queue.
-
FIFORevQueue
FIFORevQueue(boolean firstParent)
-
FIFORevQueue
FIFORevQueue(Generator s) throws MissingObjectException, IncorrectObjectTypeException, java.io.IOException
- Throws:
MissingObjectExceptionIncorrectObjectTypeExceptionjava.io.IOException
-
-
Method Detail
-
add
public void add(RevCommit c)
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:
addin classAbstractRevQueue- Parameters:
c- commit to add.
-
unpop
public void unpop(RevCommit c)
Insert the commit pointer at the front of the queue.- Parameters:
c- the commit to insert into the queue.
-
next
public RevCommit next()
Return the next commit to the application, or the next generator.Remove the first commit from the queue.
- Specified by:
nextin classAbstractRevQueue- Returns:
- next available commit; null if no more are to be returned.
-
clear
public void clear()
Remove all entries from this queue.- Specified by:
clearin classAbstractRevQueue
-
everbodyHasFlag
boolean everbodyHasFlag(int f)
- Specified by:
everbodyHasFlagin classAbstractRevQueue
-
anybodyHasFlag
boolean anybodyHasFlag(int f)
- Specified by:
anybodyHasFlagin classAbstractRevQueue
-
removeFlag
void removeFlag(int f)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-