MCPcopy Index your code
hub / github.com/antlr/codebuff / of

Method of

output/java_guava/1.4.18/ImmutableSet.java:50–53  ·  view source on GitHub ↗

Returns the empty immutable set. Preferred over Collections#emptySet for code consistency, and because the return type conveys the immutability guarantee.

()

Source from the content-addressed store, hash-verified

48 * consistency, and because the return type conveys the immutability guarantee.
49 */
50 @SuppressWarnings({"unchecked"}) // fully variant implementation (never actually produces any Es)
51 public static <E> ImmutableSet<E> of() {
52 return (ImmutableSet<E>) RegularImmutableSet.EMPTY;
53 }
54
55 /**
56 * Returns an immutable set containing {@code element}. Preferred over {@link

Callers 15

createEntrySetMethod · 0.95
createKeySetMethod · 0.95
createEntrySetMethod · 0.95
constructMethod · 0.95
copyOfMethod · 0.95
asImmutableMethod · 0.95
parallelEdgesMethod · 0.95
getInterfacesMethod · 0.95
createCellSetMethod · 0.95
createValuesMethod · 0.95

Calls 1

constructMethod · 0.95

Tested by

no test coverage detected