Skip to content

Instantly share code, notes, and snippets.

@aleksandarzekovic
Created September 21, 2020 13:41
Show Gist options
  • Select an option

  • Save aleksandarzekovic/bb9d04aec4de53f35a7e2ea2faaf6300 to your computer and use it in GitHub Desktop.

Select an option

Save aleksandarzekovic/bb9d04aec4de53f35a7e2ea2faaf6300 to your computer and use it in GitHub Desktop.
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