Creates a HashSet instance, with a high enough initial table size that it should hold expectedSize elements without resizing. This behavior cannot be broadly guaranteed, but it is observed to be true for OpenJDK 1.7. It also can't be guaranteed that the method isn't inadverten
(int expectedSize)
| 206 | |
| 207 | |
| 208 | public static <E> HashSet<E> newHashSetWithExpectedSize(int expectedSize) { |
| 209 | return new HashSet<E>(Maps.capacity(expectedSize)); |
| 210 | } |
| 211 | |
| 212 | /** |
| 213 | * Creates a <i>mutable</i> {@code HashSet} instance containing the given elements. A very thin |
no test coverage detected