/** * Construct a new, empty {@link IndirectMap} with the specified initial * capacity and the default load factor (0.75). * * @param initialCapacity the initial capacity of the {@link IndirectMap} * * @return a new, empty {@link IndirectMap} with the specified initial * capacity and the default load factor * @throws IllegalArgumentException if the initial capacity is less than * or equal to zero */ public static <K, V> IndirectMap<K, V> createIndirectMap(int initialCapacity) { return provider.createIndirectMap(initialCapacity, 0.75f); }
/** * Construct a new {@link IndirectMap} with the same mappings as the given Map. * The {@link IndirectMap} is created with a capacity of twice the number of entries * in the given Map or 11 (whichever is greater), and a default load factor, which is 0.75. * * @param map the map whose mappings are to be placed into created {@link IndirectMap} * * @return a new {@link IndirectMap} with the same mappings as the given Map * @throws NullPointerException if the specified map is null */ public static <K, V> IndirectMap<K, V> createIndirectMap(Map<? extends K, ? extends V> map) { return provider.createIndirectMap(map); }
/** * Construct a new, empty {@link IndirectMap} with the default initial * capacity (11) and the default load factor (0.75). * * @return a new, empty {@link IndirectMap} with the default initial * capacity and the default load factor */ public static <K, V> IndirectMap<K, V> createIndirectMap() { return provider.createIndirectMap(11, 0.75f); }
/** * Construct a new, empty {@link IndirectMap} with the specified initial * capacity and the default load factor (0.75). * * @param initialCapacity the initial capacity of the {@link IndirectMap} * * @return a new, empty {@link IndirectMap} with the specified initial * capacity and the default load factor * @throws IllegalArgumentException if the initial capacity is less than * or equal to zero */ public static <K, V> IndirectMap<K, V> createIndirectMap(int initialCapacity) { return provider.createIndirectMap(initialCapacity, 0.75f); }
/** * Construct a new {@link IndirectMap} with the same mappings as the given Map. * The {@link IndirectMap} is created with a capacity of twice the number of entries * in the given Map or 11 (whichever is greater), and a default load factor, which is 0.75. * * @param map the map whose mappings are to be placed into created {@link IndirectMap} * * @return a new {@link IndirectMap} with the same mappings as the given Map * @throws NullPointerException if the specified map is null */ public static <K, V> IndirectMap<K, V> createIndirectMap(Map<? extends K, ? extends V> map) { return provider.createIndirectMap(map); }
/** * Construct a new, empty {@link IndirectMap} with the default initial * capacity (11) and the default load factor (0.75). * * @return a new, empty {@link IndirectMap} with the default initial * capacity and the default load factor */ public static <K, V> IndirectMap<K, V> createIndirectMap() { return provider.createIndirectMap(11, 0.75f); }