MCPcopy Create free account
hub / github.com/antlr/codebuff / newPriorityQueue

Method newPriorityQueue

corpus/java/training/guava/collect/Queues.java:218–220  ·  view source on GitHub ↗

Creates an empty PriorityQueue with the ordering given by its elements' natural ordering. @since 11.0 (requires that E be Comparable since 15.0).

()

Source from the content-addressed store, hash-verified

216 * @since 11.0 (requires that {@code E} be {@code Comparable} since 15.0).
217 */
218 public static <E extends Comparable> PriorityQueue<E> newPriorityQueue() {
219 return new PriorityQueue<E>();
220 }
221
222 /**
223 * Creates a {@code PriorityQueue} containing the given elements.

Callers

nothing calls this directly

Calls 2

castMethod · 0.95
addAllMethod · 0.95

Tested by

no test coverage detected