Here you can find the source of hashCapacityFor(Collection> collection)
public static int hashCapacityFor(Collection<?> collection)
//package com.java2s; /*/*from w ww .j a v a 2s . c om*/ * (c) Kitodo. Key to digital objects e. V. <contact@kitodo.org> * * This file is part of the Kitodo project. * * It is licensed under GNU General Public License version 3 or later. * * For the full copyright and license information, please read the * GPL3-License.txt file that was distributed with this source code. */ import java.util.Collection; public class Main { public static int hashCapacityFor(Collection<?> collection) { return (int) Math.ceil(collection.size() / 0.75); } }