Make AbstractRevQueue actually extend Generator
commit4bd372ce4a198fbbbd50d26ca09fb7d4cbb8dac2
authorShawn O. Pearce <spearce@spearce.org>
Fri, 28 Mar 2008 23:23:31 +0000 (28 19:23 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 7 Apr 2008 05:06:28 +0000 (7 01:06 -0400)
tree84d4e65bb459b869223997da565b0beb89a43852
parent620f53d5ce6428d770e33d9ae260dca4ce744fa7
Make AbstractRevQueue actually extend Generator

The Generator API and the RevQueue APIs are very close; about the
only difference between them was the use of "pop" vs. "next" and
the outputType being supported on the Generator API.  By putting
them together into a single type hierarchy we can treat all of our
queue types as Generators and avoid an extra level of indirection
when we are forced to buffer commits.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.jgit/src/org/spearce/jgit/revwalk/AbstractPendingGenerator.java
org.spearce.jgit/src/org/spearce/jgit/revwalk/AbstractRevQueue.java
org.spearce.jgit/src/org/spearce/jgit/revwalk/BlockRevQueue.java
org.spearce.jgit/src/org/spearce/jgit/revwalk/BufferGenerator.java [deleted file]
org.spearce.jgit/src/org/spearce/jgit/revwalk/DateRevQueue.java
org.spearce.jgit/src/org/spearce/jgit/revwalk/FIFORevQueue.java
org.spearce.jgit/src/org/spearce/jgit/revwalk/LIFORevQueue.java
org.spearce.jgit/src/org/spearce/jgit/revwalk/RevWalk.java
org.spearce.jgit/src/org/spearce/jgit/revwalk/RewriteGenerator.java
org.spearce.jgit/src/org/spearce/jgit/revwalk/StartGenerator.java
org.spearce.jgit/src/org/spearce/jgit/revwalk/TopoSortGenerator.java