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

Method PowerSet

corpus/java/training/guava/collect/Sets.java:1332–1336  ·  view source on GitHub ↗
(Set<E> input)

Source from the content-addressed store, hash-verified

1330 final ImmutableMap<E, Integer> inputSet;
1331
1332 PowerSet(Set<E> input) {
1333 this.inputSet = Maps.indexMap(input);
1334 checkArgument(
1335 inputSet.size() <= 30, "Too many elements to create power set: %s > 30", inputSet.size());
1336 }
1337
1338 @Override
1339 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