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
()
| 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. |
no test coverage detected