We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm having to do things like
ImmutableGraph.copyOf(GraphBuilder.directed().build<String>())
in order to practice the null-object pattern rather than use null for default values of graph properties.
It would be nice to have empty() or of() factories for an immutable version of a graph/value graph/network for this reason.
empty()
of()
The text was updated successfully, but these errors were encountered:
I think the intended pattern is the following, which is still not as simple as it could be for empty graphs, but it's simpler than what you have.
GraphBuilder.directed().<Foo>immutable().build() // Java GraphBuilder.directed().immutable<Foo>().build() // Kotlin
Sorry, something went wrong.
Ah, I don't have an immutable(). I think I need a version bump! Thanks.
immutable()
No branches or pull requests
I'm having to do things like
in order to practice the null-object pattern rather than use null for default values of graph properties.
It would be nice to have
empty()
orof()
factories for an immutable version of a graph/value graph/network for this reason.The text was updated successfully, but these errors were encountered: