Creates an empty PriorityBlockingQueue with the ordering given by its elements' natural ordering. @since 11.0 (requires that E be Comparable since 15.0).
()
| 210 | |
| 211 | |
| 212 | public static <E extends Comparable> PriorityBlockingQueue<E> newPriorityBlockingQueue() { |
| 213 | return new PriorityBlockingQueue<E>(); |
| 214 | } |
| 215 | |
| 216 | /** |
| 217 | * Creates a {@code PriorityBlockingQueue} containing the given elements. |