MCPcopy Index your code
hub / github.com/google/dagger / Thermosiphon

Class Thermosiphon

examples/simple/src/main/java/coffee/Thermosiphon.java:5–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3import javax.inject.Inject;
4
5class Thermosiphon implements Pump {
6 private final Heater heater;
7
8 @Inject
9 Thermosiphon(Heater heater) {
10 this.heater = heater;
11 }
12
13 @Override public void pump() {
14 if (heater.isHot()) {
15 System.out.println("=> => pumping => =>");
16 }
17 }
18}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected