MCPcopy Create free account
hub / github.com/Seogeurim/CS-study / peek

Method peek

contents/data-structure/code/Queue/ArrayQueue.java:45–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43 }
44
45 @Override
46 public E peek() {
47 if (isEmpty()) return null;
48 return data[front];
49 }
50}

Callers

nothing calls this directly

Calls 1

isEmptyMethod · 0.95

Tested by

no test coverage detected