Lines Matching defs:expectedSize
179 * that it <i>should</i> hold {@code expectedSize} elements without growth.
184 * @param expectedSize the number of elements you expect to add to the
187 * expectedSize} elements without resizing
188 * @throws IllegalArgumentException if {@code expectedSize} is negative
190 public static <E> HashSet<E> newHashSetWithExpectedSize(int expectedSize) {
191 return new HashSet<E>(Maps.capacity(expectedSize));
250 * capacity" that it <i>should</i> hold {@code expectedSize} elements without
255 * @param expectedSize the number of elements you expect to add to the
258 * {@code expectedSize} elements without resizing
259 * @throws IllegalArgumentException if {@code expectedSize} is negative
263 int expectedSize) {
264 return new LinkedHashSet<E>(Maps.capacity(expectedSize));