ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/AbstractQueue.java
(Generate patch)

Comparing jsr166/src/main/java/util/AbstractQueue.java (file contents):
Revision 1.34 by jsr166, Sun May 28 23:36:29 2006 UTC vs.
Revision 1.35 by jsr166, Tue Sep 11 15:10:56 2007 UTC

# Line 12 | Line 12 | package java.util;
12   * the base implementation does <em>not</em> allow <tt>null</tt>
13   * elements.  Methods {@link #add add}, {@link #remove remove}, and
14   * {@link #element element} are based on {@link #offer offer}, {@link
15 < * #poll poll}, and {@link #peek peek}, respectively but throw
15 > * #poll poll}, and {@link #peek peek}, respectively, but throw
16   * exceptions instead of indicating failure via <tt>false</tt> or
17   * <tt>null</tt> returns.
18   *
19 < * <p> A <tt>Queue</tt> implementation that extends this class must
19 > * <p>A <tt>Queue</tt> implementation that extends this class must
20   * minimally define a method {@link Queue#offer} which does not permit
21   * insertion of <tt>null</tt> elements, along with methods {@link
22 < * Queue#peek}, {@link Queue#poll}, {@link Collection#size}, and a
23 < * {@link Collection#iterator} supporting {@link
24 < * Iterator#remove}. Typically, additional methods will be overridden
25 < * as well. If these requirements cannot be met, consider instead
26 < * subclassing {@link AbstractCollection}.
22 > * Queue#peek}, {@link Queue#poll}, {@link Collection#size}, and
23 > * {@link Collection#iterator}.  Typically, additional methods will be
24 > * overridden as well.  If these requirements cannot be met, consider
25 > * instead subclassing {@link AbstractCollection}.
26   *
27   * <p>This class is a member of the
28   * <a href="{@docRoot}/../technotes/guides/collections/index.html">

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines