Created
September 21, 2020 13:41
-
-
Save aleksandarzekovic/bb9d04aec4de53f35a7e2ea2faaf6300 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public final class DaggerCarComponent implements CarComponent { | |
| private DaggerCarComponent() { | |
| } | |
| public static Builder builder() { | |
| return new Builder(); | |
| } | |
| public static CarComponent create() { | |
| return new Builder().build(); | |
| } | |
| @Override | |
| public Car getCar() { | |
| return new Car(new Engine(), new Transmission()); | |
| } | |
| public static final class Builder { | |
| private Builder() { | |
| } | |
| public CarComponent build() { | |
| return new DaggerCarComponent(); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment