MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / peek

Method peek

onjava/Stack.java:13–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11 private Deque<T> storage = new ArrayDeque<>();
12 public void push(T v) { storage.push(v); }
13 public T peek() { return storage.peek(); }
14 public T pop() { return storage.pop(); }
15 public boolean isEmpty() { return storage.isEmpty(); }
16 @Override public String toString() {

Callers 15

mainMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80
printQMethod · 0.80
mainMethod · 0.80
runMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80
showMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80

Calls

no outgoing calls

Tested by 1

testMethod · 0.64