--- jsr166/src/main/java/util/Queue.java 2014/12/02 05:48:28 1.42 +++ jsr166/src/main/java/util/Queue.java 2017/05/06 06:55:50 1.47 @@ -8,37 +8,36 @@ package java.util; /** * A collection designed for holding elements prior to processing. - * Besides basic {@link java.util.Collection Collection} operations, - * queues provide additional insertion, extraction, and inspection - * operations. Each of these methods exists in two forms: one throws - * an exception if the operation fails, the other returns a special - * value (either {@code null} or {@code false}, depending on the - * operation). The latter form of the insert operation is designed - * specifically for use with capacity-restricted {@code Queue} - * implementations; in most implementations, insert operations cannot - * fail. + * Besides basic {@link Collection} operations, queues provide + * additional insertion, extraction, and inspection operations. + * Each of these methods exists in two forms: one throws an exception + * if the operation fails, the other returns a special value (either + * {@code null} or {@code false}, depending on the operation). The + * latter form of the insert operation is designed specifically for + * use with capacity-restricted {@code Queue} implementations; in most + * implementations, insert operations cannot fail. * *
- * | Throws exception | - *Returns special value | + *Throws exception | + *Returns special value | *
Insert | - *{@link Queue#add add(e)} | - *{@link Queue#offer offer(e)} | + *{@link #add(Object) add(e)} | + *{@link #offer(Object) offer(e)} | *
Remove | - *{@link Queue#remove remove()} | - *{@link Queue#poll poll()} | + *{@link #remove() remove()} | + *{@link #poll() poll()} | *
Examine | - *{@link Queue#element element()} | - *{@link Queue#peek peek()} | + *{@link #element() element()} | + *{@link #peek() peek()} | *
This interface is a member of the
- *
+ *
* Java Collections Framework.
*
- * @see java.util.Collection
- * @see LinkedList
- * @see PriorityQueue
- * @see java.util.concurrent.LinkedBlockingQueue
- * @see java.util.concurrent.BlockingQueue
- * @see java.util.concurrent.ArrayBlockingQueue
- * @see java.util.concurrent.LinkedBlockingQueue
- * @see java.util.concurrent.PriorityBlockingQueue
* @since 1.5
* @author Doug Lea
* @param