Skip to content

Instantly share code, notes, and snippets.

@dalexandrov
Created February 23, 2021 14:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dalexandrov/db0447d479c7c4fe147bf8b1ac4569de to your computer and use it in GitHub Desktop.
Save dalexandrov/db0447d479c7c4fe147bf8b1ac4569de to your computer and use it in GitHub Desktop.
public static class Builder implements io.helidon.common.Builder<Neo4jMetricsSupport> {
private Driver driver;
private Builder() {
}
public Neo4jMetricsSupport build() {
Objects.requireNonNull(driver, "Must set driver before building");
return new Neo4jMetricsSupport(this);
}
public Builder driver(Driver driver) {
this.driver = driver;
return this;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment