Fix cut and paste error

bug 33125, from Chad McHenry

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@151270 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stephen Colebourne 2005-02-04 00:22:31 +00:00
parent 8b7f8f1a5c
commit dd68558fcd
1 changed files with 5 additions and 5 deletions

View File

@ -118,11 +118,11 @@ These represent collections that have a well defined removal order.
</p>
<source>
Buffer buffer = new UnboundedFifoBuffer();
bidi.add("ONE");
bidi.add("TWO");
bidi.add("THREE");
bidi.remove(); // removes and returns the next in order, "ONE" as this is a FIFO
bidi.remove(); // removes and returns the next in order, "TWO" as this is a FIFO
buffer.add("ONE");
buffer.add("TWO");
buffer.add("THREE");
buffer.remove(); // removes and returns the next in order, "ONE" as this is a FIFO
buffer.remove(); // removes and returns the next in order, "TWO" as this is a FIFO
</source>
<p>
Implementations are provided for FIFO (queue), LIFO (stack) and Priority (removal in comparator order).