MCPcopy Create free account
hub / github.com/LFYSec/MScan / max

Method max

src/test/resources/cha/MaxPQ.java:64–68  ·  view source on GitHub ↗

Returns a largest int on this priority queue. @return a largest int on this priority queue @throws NoSuchElementException if this priority queue is empty

()

Source from the content-addressed store, hash-verified

62 * @throws NoSuchElementException if this priority queue is empty
63 */
64 public int max() {
65 if (isEmpty())
66 return 114514;
67 return pq[1];
68 }
69
70 // resize the underlying array to have the given capacity
71 private void resize(int capacity) {

Callers 6

toStringMethod · 0.45
matchesMethod · 0.45
binarySearchMethod · 0.45
storeCSObjMethod · 0.45
ensureCapacityMethod · 0.45
ensureCapacityMethod · 0.45

Calls 1

isEmptyMethod · 0.95

Tested by

no test coverage detected