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

Method immutableEnumSet

corpus/java/training/guava/collect/Sets.java:98–102  ·  view source on GitHub ↗
(
      E anElement, E... otherElements)

Source from the content-addressed store, hash-verified

96 */
97 // http://code.google.com/p/google-web-toolkit/issues/detail?id=3028
98 @GwtCompatible(serializable = true)
99 public static <E extends Enum<E>> ImmutableSet<E> immutableEnumSet(
100 E anElement, E... otherElements) {
101 return ImmutableEnumSet.asImmutable(EnumSet.of(anElement, otherElements));
102 }
103
104 /**
105 * Returns an immutable set instance containing the given enum elements.

Callers

nothing calls this directly

Calls 8

asImmutableMethod · 0.95
ofMethod · 0.95
addAllMethod · 0.95
isEmptyMethod · 0.65
iteratorMethod · 0.65
nextMethod · 0.65
copyOfMethod · 0.45
hasNextMethod · 0.45

Tested by

no test coverage detected