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

Method add

generics/SimpleQueue.java:10–10  ·  view source on GitHub ↗
(T t)

Source from the content-addressed store, hash-verified

8public class SimpleQueue<T> implements Iterable<T> {
9 private LinkedList<T> storage = new LinkedList<>();
10 public void add(T t) { storage.offer(t); }
11 public T get() { return storage.poll(); }
12 @Override public Iterator<T> iterator() {
13 return storage.iterator();

Callers 13

oldStyleMethodMethod · 0.45
mainMethod · 0.45
makeListMethod · 0.45
mainMethod · 0.45
putMethod · 0.45
processMethod · 0.45
processMethod · 0.45
mainMethod · 0.45
FilledListMethod · 0.45
mainMethod · 0.45
AisleMethod · 0.45
StoreMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected