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

Class FillableList

patterns/trash/FillableList.java:9–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7import java.util.*;
8
9public class FillableList<T extends Trash>
10implements Fillable<T> {
11 private List<T> list;
12 public FillableList(List<T> list) {
13 this.list = list;
14 }
15 @Override public void addTrash(T t) {
16 list.add(t);
17 }
18}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected