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

pack-priv abstract Class AbstractRevQueue

extends Generator
Class Inheritance
Known Direct Subclasses
org.eclipse.jgit.revwalk.AbstractRevQueue.AlwaysEmptyQueue, org.eclipse.jgit.revwalk.BlockRevQueue, org.eclipse.jgit.revwalk.DateRevQueue

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
pack-priv static final AbstractRevQueue
pack-priv int
outputType

Current output flags set for this generator instance.

Inherited from org.eclipse.jgit.revwalk.Generator:
firstParentHAS_REWRITEHAS_UNINTERESTINGNEEDS_REWRITESORT_COMMIT_TIME_DESCSORT_TOPO

Constructor Summary

AccessConstructor and Description
pack-priv
AbstractRevQueue(boolean firstParent)

Method Summary

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

Add a commit to the queue.

public final void
add(RevCommit
commit to add.
c
,
RevFlag
flag that controls admission to the queue.
queueControl
)

Add a commit if it does not have a flag set yet, then set the flag.

public final void
addParents(RevCommit
commit whose parents should be added.
c
,
RevFlag
flag that controls admission to the queue.
queueControl
)

Add a commit's parents if one does not have a flag set yet.

pack-priv abstract boolean
public abstract void
clear()

Remove all entries from this queue.

protected static void
describe(StringBuilder
a StringBuilder
s
,
RevCommit c)

Describe this queue

pack-priv abstract boolean
public abstract RevCommit
next()

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

Remove the first commit from the queue.

pack-priv int
outputType()

Implements abstract org.eclipse.jgit.revwalk.Generator.outputType.

Obtain flags describing the output behavior of this generator.

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

Field Detail

EMPTY_QUEUEback to summary
pack-priv static final AbstractRevQueue EMPTY_QUEUE
outputTypeback to summary
pack-priv int outputType

Current output flags set for this generator instance.

Constructor Detail

AbstractRevQueueback to summary
pack-priv AbstractRevQueue(boolean firstParent)

Method Detail

addback to summary
public abstract 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 add(RevCommit, RevFlag).

Parameters
c:RevCommit

commit to add.

addback to summary
public final void add(RevCommit c, RevFlag queueControl)

Add a commit if it does not have a flag set yet, then set the flag.

This method permits the application to test if the commit has the given flag; if it does not already have the flag than the commit is added to the queue and the flag is set. This later will prevent the commit from being added twice.

Parameters
c:RevCommit

commit to add.

queueControl:RevFlag

flag that controls admission to the queue.

addParentsback to summary
public final void addParents(RevCommit c, RevFlag queueControl)

Add a commit's parents if one does not have a flag set yet.

This method permits the application to test if the commit has the given flag; if it does not already have the flag than the commit is added to the queue and the flag is set. This later will prevent the commit from being added twice.

Parameters
c:RevCommit

commit whose parents should be added.

queueControl:RevFlag

flag that controls admission to the queue.

anybodyHasFlagback to summary
pack-priv abstract boolean anybodyHasFlag(int f)
clearback to summary
public abstract void clear()

Remove all entries from this queue.

describeback to summary
protected static void describe(StringBuilder s, RevCommit c)

Describe this queue

Parameters
s:StringBuilder

a StringBuilder

c:RevCommit

a org.eclipse.jgit.revwalk.RevCommit

everbodyHasFlagback to summary
pack-priv abstract boolean everbodyHasFlag(int f)
nextback to summary
public abstract RevCommit next()

Implements abstract org.eclipse.jgit.revwalk.Generator.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()

Implements abstract org.eclipse.jgit.revwalk.Generator.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
org.eclipse.jgit.revwalk back to summary

private Class AbstractRevQueue.AlwaysEmptyQueue

extends AbstractRevQueue
Class Inheritance

Field Summary

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

Constructor Summary

AccessConstructor and Description
private

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.

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

Constructor Detail

AlwaysEmptyQueueback to summary
private AlwaysEmptyQueue()

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