MCPcopy Create free account
hub / github.com/ReadyTalk/avian / complementOf

Method complementOf

classpath/java/util/EnumSet.java:83–88  ·  view source on GitHub ↗
(EnumSet<T> s)

Source from the content-addressed store, hash-verified

81 }
82
83 public static <T extends Enum<T>>EnumSet<T> complementOf(EnumSet<T> s) {
84 EnumSet<T> enumSet = copyOf(s);
85 enumSet.bitset.flip(0, s.elementType.getEnumConstants().length);
86
87 return enumSet;
88 }
89
90 public static <T extends Enum<T>>EnumSet<T> copyOf(EnumSet<T> s) {
91 EnumSet<T> enumSet = createEmptyEnumSet(s.elementType);

Callers 1

testComplimentOfMethod · 0.95

Calls 3

copyOfMethod · 0.95
getEnumConstantsMethod · 0.80
flipMethod · 0.45

Tested by 1

testComplimentOfMethod · 0.76