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

Method makeComplementByHand

output/java_guava/1.4.19/Sets.java:528–532  ·  view source on GitHub ↗
(Collection<E> collection, Class<E> type)

Source from the content-addressed store, hash-verified

526 }
527
528 private static <E extends Enum<E>> EnumSet<E> makeComplementByHand(Collection<E> collection, Class<E> type) {
529 EnumSet<E> result = EnumSet.allOf(type);
530 result.removeAll(collection);
531 return result;
532 }
533
534 /**
535 * Returns a set backed by the specified map. The resulting set displays

Callers 1

complementOfMethod · 0.95

Calls 1

removeAllMethod · 0.65

Tested by

no test coverage detected