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

public Class DateRevQueue

extends AbstractRevQueue
Class Inheritance
Known Direct Subclasses
org.eclipse.jgit.revwalk.DateRevPriorityQueue
Imports
java.io.IOException, org.eclipse.jgit.annotations.Nullable, org.eclipse.jgit.errors.IncorrectObjectTypeException, .MissingObjectException

A queue of commits sorted by commit time order.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
private int
private DateRevQueue.Entry
private DateRevQueue.Entry
private DateRevQueue.Entry[]
private int
private int
private static final int
private int
Inherited from org.eclipse.jgit.revwalk.AbstractRevQueue:
EMPTY_QUEUEoutputType

Constructor Summary

AccessConstructor and Description
public
DateRevQueue()

Create an empty DateRevQueue.

pack-priv
DateRevQueue(boolean
treat first element as a parent
firstParent
)

Create an empty DateRevQueue.

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
private void
public void
clear()

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

Remove all entries from this queue.

pack-priv boolean
private void
private DateRevQueue.Entry
public RevCommit
next()

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

Remove the first commit from the queue.

pack-priv int
outputType()

Overrides org.eclipse.jgit.revwalk.AbstractRevQueue.outputType.

Obtain flags describing the output behavior of this generator.

public RevCommit

Returns:

the next available commit; null if there are no commits left.
peek
()

Peek at the next commit, without removing it.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from org.eclipse.jgit.revwalk.AbstractRevQueue:
addaddParentsdescribe

Field Detail

firstback to summary
private int first
freeback to summary
private DateRevQueue.Entry free
indexback to summary
private DateRevQueue.Entry[] index
inQueueback to summary
private int inQueue
lastback to summary
private int last
REBUILD_INDEX_COUNTback to summary
private static final int REBUILD_INDEX_COUNT
sinceLastIndexback to summary
private int sinceLastIndex

Constructor Detail

DateRevQueueback to summary
public DateRevQueue()

Create an empty DateRevQueue.

DateRevQueueback to summary
pack-priv DateRevQueue(boolean firstParent)

Create an empty DateRevQueue.

Parameters
firstParent:boolean

treat first element as a parent

DateRevQueueback to summary
pack-priv DateRevQueue(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
buildIndexback to summary
private void buildIndex()
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
freeEntryback to summary
private void freeEntry(DateRevQueue.Entry e)
newEntryback to summary
private DateRevQueue.Entry newEntry(RevCommit c)
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
outputTypeback to summary
pack-priv int outputType()

Overrides org.eclipse.jgit.revwalk.AbstractRevQueue.outputType.

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

Obtain flags describing the output behavior of this generator.

Returns:int

one or more of the constants declared in this class, describing how this generator produces its results.

Annotations
@Override
peekback to summary
public RevCommit peek()

Peek at the next commit, without removing it.

Returns:RevCommit

the next available commit; null if there are no commits left.

Annotations
@Nullable
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
org.eclipse.jgit.revwalk back to summary

pack-priv Class DateRevQueue.Entry

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv RevCommit
pack-priv DateRevQueue.Entry

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

commitback to summary
pack-priv RevCommit commit
nextback to summary
pack-priv DateRevQueue.Entry next

Constructor Detail

Entryback to summary
pack-priv Entry()