MCPcopy Create free account
hub / github.com/antlr/codebuff / expectedNodeCount

Method expectedNodeCount

output/java_guava/1.4.16/GraphBuilder.java:112–118  ·  view source on GitHub ↗

Specifies the expected number of nodes in the graph. @throws IllegalArgumentException if expectedNodeCount is negative

(int expectedNodeCount)

Source from the content-addressed store, hash-verified

110
111
112 public GraphBuilder<N> expectedNodeCount(int expectedNodeCount) {
113 checkArgument(expectedNodeCount >= 0,
114 "The expected number of nodes can't be negative: %s",
115 expectedNodeCount);
116 this.expectedNodeCount = Optional.of(expectedNodeCount);
117 return this;
118 }
119
120 /**
121 * Returns an empty {@link MutableGraph} with the properties of this {@link GraphBuilder}.

Callers 1

copyOfMethod · 0.45

Calls 2

ofMethod · 0.95
checkArgumentMethod · 0.45

Tested by

no test coverage detected