Top Description Fields Constructors Methods
org.eclipse.jgit.revwalk

public Class FIFORevQueue

extends BlockRevQueue
Class Inheritance
Imports
java.io.IOException, org.eclipse.jgit.errors.IncorrectObjectTypeException, .MissingObjectException

A queue of commits in FIFO order.

Field Summary

Modifier and TypeField and Description
private BlockRevQueue.Block
private BlockRevQueue.Block
Inherited from org.eclipse.jgit.revwalk.BlockRevQueue:
free

Constructor Summary

AccessConstructor and Description
public
FIFORevQueue()

Create an empty FIFO queue.

pack-priv
FIFORevQueue(boolean firstParent)

pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
add(RevCommit
commit to add.
c
)

Implements abstract org.eclipse.jgit.revwalk.AbstractRevQueue.add.

Add a commit to the queue.

pack-priv boolean
public void
clear()

Implements abstract org.eclipse.jgit.revwalk.AbstractRevQueue.clear.

Remove all entries from this queue.

pack-priv boolean
public RevCommit
next()

Implements abstract org.eclipse.jgit.revwalk.AbstractRevQueue.next.

Remove the first commit from the queue.

pack-priv void
removeFlag(int f)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

public void
unpop(RevCommit
the commit to insert into the queue.
c
)

Insert the commit pointer at the front of the queue.

Inherited from org.eclipse.jgit.revwalk.BlockRevQueue:
shareFreeList

Field Detail

tailback to summary
private BlockRevQueue.Block tail

Constructor Detail

FIFORevQueueback to summary
public FIFORevQueue()

Create an empty FIFO queue.

FIFORevQueueback to summary
pack-priv FIFORevQueue(boolean firstParent)
FIFORevQueueback to summary
pack-priv FIFORevQueue(Generator s) throws MissingObjectException, IncorrectObjectTypeException, IOException

Method Detail

addback to summary
public void add(RevCommit c)

Implements abstract org.eclipse.jgit.revwalk.AbstractRevQueue.add.

Doc from org.eclipse.jgit.revwalk.AbstractRevQueue.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 add(RevCommit, RevFlag).

Parameters
c:RevCommit

commit to add.

Annotations
@Override
anybodyHasFlagback to summary
pack-priv boolean anybodyHasFlag(int f)

Implements abstract org.eclipse.jgit.revwalk.AbstractRevQueue.anybodyHasFlag.

Annotations
@Override
clearback to summary
public void clear()

Implements abstract org.eclipse.jgit.revwalk.AbstractRevQueue.clear.

Doc from org.eclipse.jgit.revwalk.AbstractRevQueue.clear.

Remove all entries from this queue.

Annotations
@Override
everbodyHasFlagback to summary
pack-priv boolean everbodyHasFlag(int f)

Implements abstract org.eclipse.jgit.revwalk.AbstractRevQueue.everbodyHasFlag.

Annotations
@Override
nextback to summary
public RevCommit next()

Implements abstract org.eclipse.jgit.revwalk.AbstractRevQueue.next.

Doc from org.eclipse.jgit.revwalk.AbstractRevQueue.next.

Remove the first commit from the queue.

Returns:RevCommit

Doc from org.eclipse.jgit.revwalk.Generator.next.

next available commit; null if no more are to be returned.

Annotations
@Override
removeFlagback to summary
pack-priv void removeFlag(int f)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override
unpopback to summary
public void unpop(RevCommit c)

Insert the commit pointer at the front of the queue.

Parameters
c:RevCommit

the commit to insert into the queue.