|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.jgit.revwalk.DateRevQueue
public class DateRevQueue
A queue of commits sorted by commit time order.
Constructor Summary | |
---|---|
DateRevQueue()
Create an empty date queue. |
Method Summary | |
---|---|
void |
add(RevCommit c)
Add a commit to the queue. |
void |
add(RevCommit c,
RevFlag queueControl)
Add a commit if it does not have a flag set yet, then set the flag. |
void |
addParents(RevCommit c,
RevFlag queueControl)
Add a commit's parents if one does not have a flag set yet. |
void |
clear()
Remove all entries from this queue. |
protected static void |
describe(StringBuilder s,
RevCommit c)
|
RevCommit |
next()
Remove the first commit from the queue. |
RevCommit |
peek()
Peek at the next commit, without removing it. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DateRevQueue()
Method Detail |
---|
public void add(RevCommit c)
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)
.
c
- commit to add.public RevCommit next()
public RevCommit peek()
public void clear()
public String toString()
toString
in class Object
public final void add(RevCommit c, RevFlag queueControl)
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.
c
- commit to add.queueControl
- flag that controls admission to the queue.public final void addParents(RevCommit c, RevFlag queueControl)
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.
c
- commit whose parents should be added.queueControl
- flag that controls admission to the queue.protected static void describe(StringBuilder s, RevCommit c)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |