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

Method of

classpath/java/util/EnumSet.java:75–81  ·  view source on GitHub ↗
(T first, T ... rest)

Source from the content-addressed store, hash-verified

73 }
74
75 public static <T extends Enum<T>>EnumSet<T> of(T first, T ... rest) {
76 EnumSet<T> enumSet = createEmptyEnumSet(first.getDeclaringClass());
77 enumSet.add(first);
78 addAllElementsToSet(Arrays.asList(rest), enumSet);
79
80 return enumSet;
81 }
82
83 public static <T extends Enum<T>>EnumSet<T> complementOf(EnumSet<T> s) {
84 EnumSet<T> enumSet = copyOf(s);

Callers 3

testComplimentOfMethod · 0.95
testCopyOfMethod · 0.95
testOfMethod · 0.95

Calls 5

createEmptyEnumSetMethod · 0.95
addAllElementsToSetMethod · 0.95
asListMethod · 0.95
getDeclaringClassMethod · 0.65
addMethod · 0.65

Tested by 3

testComplimentOfMethod · 0.76
testCopyOfMethod · 0.76
testOfMethod · 0.76