Skip to content

Instantly share code, notes, and snippets.

@christopherperry
Last active April 10, 2016 03:40
Show Gist options
  • Select an option

  • Save christopherperry/c75391bbdf52e2873844e1e5b78843cf to your computer and use it in GitHub Desktop.

Select an option

Save christopherperry/c75391bbdf52e2873844e1e5b78843cf to your computer and use it in GitHub Desktop.

Revisions

  1. christopherperry revised this gist Apr 10, 2016. 1 changed file with 0 additions and 14 deletions.
    14 changes: 0 additions & 14 deletions CoffeeMaker2.java
    Original file line number Diff line number Diff line change
    @@ -1,14 +0,0 @@
    package coffee.maker;

    import coffee.maker.heater.Heater;
    import coffee.maker.pump.Pump;

    public class CoffeeMaker {
    private final Heater heater;
    private final Pump thermosiphon;

    public CoffeeMaker(Heater heater, Pump pump) {
    this.heater = heater;
    this.pump = pump;
    }
    }
  2. christopherperry created this gist Apr 10, 2016.
    14 changes: 14 additions & 0 deletions CoffeeMaker1.java
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    package coffee.maker;

    import coffee.maker.heater.ElectricHeater;
    import coffee.maker.pump.Thermosiphon;

    public class CoffeeMaker {
    private final ElectricHeater heater;
    private final Thermosiphon thermosiphon;

    public CoffeeMaker() {
    heater = new ElectricHeater();
    thermosiphon = new Thermosiphon();
    }
    }
    14 changes: 14 additions & 0 deletions CoffeeMaker2.java
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    package coffee.maker;

    import coffee.maker.heater.Heater;
    import coffee.maker.pump.Pump;

    public class CoffeeMaker {
    private final Heater heater;
    private final Pump thermosiphon;

    public CoffeeMaker(Heater heater, Pump pump) {
    this.heater = heater;
    this.pump = pump;
    }
    }