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

Method newHashSet

output/java_guava/1.4.18/Sets.java:169–171  ·  view source on GitHub ↗

Creates a mutable , initially empty HashSet instance. Note: if mutability is not required, use ImmutableSet#of() instead. If E is an Enum type, use EnumSet#noneOf instead. Otherwise, strongly consider using a LinkedHashSet instead, at

()

Source from the content-addressed store, hash-verified

167
168
169 public static <E> HashSet<E> newHashSet() {
170 return new HashSet<E>();
171 }
172
173 /**
174 * Creates a <i>mutable</i> {@code HashSet} instance initially containing the given elements.

Callers 5

removeAllMethod · 0.95
retainAllMethod · 0.95
TypeVisitorClass · 0.95
ScannerClass · 0.95

Calls 5

castMethod · 0.95
addAllMethod · 0.95
addAllMethod · 0.65
iteratorMethod · 0.65

Tested by

no test coverage detected