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

Method newHashSet

corpus/java/training/guava/collect/Sets.java:165–167  ·  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

163 * <a href="http://goo.gl/iz2Wi">"diamond" syntax</a>.
164 */
165 public static <E> HashSet<E> newHashSet() {
166 return new HashSet<E>();
167 }
168
169 /**
170 * 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