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

Method newPriorityQueue

output/java_guava/1.4.18/Queues.java:245–247  ·  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

243
244
245 public static <E extends Comparable> PriorityQueue<E> newPriorityQueue() {
246 return new PriorityQueue<E>();
247 }
248
249 /**
250 * 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