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

Class TypeMapAdapter

patterns/trash/TypeMapTrash.java:13–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12// Adapter class for ParseTrash.fillBin():
13class TypeMapAdapter implements Fillable {
14 private TypeMap<Trash> map;
15 TypeMapAdapter(TypeMap<Trash> map) {
16 this.map = map;
17 }
18 @Override
19 public void addTrash(Trash t) { map.add(t); }
20}
21
22public class TypeMapTrash {
23 @SuppressWarnings("unchecked")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected