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

Method PowerSet

output/java_guava/1.4.19/Sets.java:1378–1381  ·  view source on GitHub ↗
(Set<E> input)

Source from the content-addressed store, hash-verified

1376 final ImmutableMap<E, Integer> inputSet;
1377
1378 PowerSet(Set<E> input) {
1379 this.inputSet = Maps.indexMap(input);
1380 checkArgument(inputSet.size() <= 30, "Too many elements to create power set: %s > 30", inputSet.size());
1381 }
1382
1383 @Override
1384 public int size() {

Callers

nothing calls this directly

Calls 3

indexMapMethod · 0.95
sizeMethod · 0.65
checkArgumentMethod · 0.45

Tested by

no test coverage detected