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

Method makeComplementByHand

corpus/java/training/guava/collect/Sets.java:494–499  ·  view source on GitHub ↗
(
      Collection<E> collection, Class<E> type)

Source from the content-addressed store, hash-verified

492 }
493
494 private static <E extends Enum<E>> EnumSet<E> makeComplementByHand(
495 Collection<E> collection, Class<E> type) {
496 EnumSet<E> result = EnumSet.allOf(type);
497 result.removeAll(collection);
498 return result;
499 }
500
501 /**
502 * 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