/** * Constructs a new empty updatable map of the default expected size. * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashIntObjMapFactory#newUpdatableMap() newUpdatableMap()}. * * @param <V> the value type of the returned map * @return a new empty updatable map */ @Nonnull public static <V> HashIntObjMap<V> newUpdatableMap() { return getDefaultFactory().<V>newUpdatableMap(); }
/** * Constructs a new empty updatable map of the default expected size. * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashIntObjMapFactory#newUpdatableMap() newUpdatableMap()}. * * @param <V> the value type of the returned map * @return a new empty updatable map */ @Nonnull public static <V> HashIntObjMap<V> newUpdatableMap() { return getDefaultFactory().<V>newUpdatableMap(); }
/** * Constructs a new empty updatable map of the given expected size. * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashIntObjMapFactory#newUpdatableMap(int) newUpdatableMap(expectedSize)}. * * @param expectedSize the expected size of the returned map * @param <V> the value type of the returned map * @return a new empty updatable map of the given expected size */ @Nonnull public static <V> HashIntObjMap<V> newUpdatableMap(int expectedSize) { return getDefaultFactory().<V>newUpdatableMap(expectedSize); }
/** * Constructs a new empty updatable map of the given expected size. * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashIntObjMapFactory#newUpdatableMap(int) newUpdatableMap(expectedSize)}. * * @param expectedSize the expected size of the returned map * @param <V> the value type of the returned map * @return a new empty updatable map of the given expected size */ @Nonnull public static <V> HashIntObjMap<V> newUpdatableMap(int expectedSize) { return getDefaultFactory().<V>newUpdatableMap(expectedSize); }
/** * Constructs a new updatable map with the same mappings as the specified {@code map}. * * * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashIntObjMapFactory#newUpdatableMap( * Map) newUpdatableMap(map)}. * * @param map the map whose mappings are to be placed in the returned map * * @param <V> the value type of the returned map * @return a new updatable map with the same mappings as the specified {@code map} */ @Nonnull public static <V> HashIntObjMap<V> newUpdatableMap( @Nonnull Map<Integer, ? extends V> map) { return getDefaultFactory().<V>newUpdatableMap(map); }
/** * Constructs a new updatable map filled with mappings consumed by the callback within the given * closure. Mappings supplied later within the closure have priority over the mappings * passed earlier with the same keys. * * <p>Example: TODO * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashIntObjMapFactory#newUpdatableMap( * Consumer, int) newUpdatableMap(entriesSupplier, expectedSize)}. * * @param entriesSupplier the function which supply mappings for the returned map via * the callback passed in * @param expectedSize the expected size of the returned map * @param <V> the value type of the returned map * @return a new updatable map with mappings consumed by the callback within the given closure */ @Nonnull public static <V> HashIntObjMap<V> newUpdatableMap(@Nonnull Consumer<com.koloboke.function.IntObjConsumer<V>> entriesSupplier , int expectedSize) { return getDefaultFactory().<V>newUpdatableMap(entriesSupplier, expectedSize); }
/** * Constructs a new updatable map with the given mappings, i. e. pairs of elements from * the {@code keys} and {@code values} arrays at the same index. If {@code keys} array have * duplicate elements, value corresponding the key with the highest index is left * in the returned map. * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashIntObjMapFactory#newUpdatableMap(Integer[], * Object[], int) newUpdatableMap(keys, values, expectedSize)}. * * @param keys the keys of the returned map * @param values the values of the returned map, each value is associated with the element * of the {@code keys} array at the same index * @param expectedSize the expected size of the returned map * @param <V> the value type of the returned map * @return a new updatable map with the given mappings * @throws IllegalArgumentException if {@code keys} and {@code values} arrays have different * length */ @Nonnull public static <V> HashIntObjMap<V> newUpdatableMap( @Nonnull Integer[] keys, @Nonnull V[] values, int expectedSize) { return getDefaultFactory().<V>newUpdatableMap(keys, values, expectedSize); }
/** * Constructs a new updatable map with the given mappings, i. e. pairs of elements from * the {@code keys} and {@code values} arrays at the same index. If {@code keys} array have * duplicate elements, value corresponding the key with the highest index is left * in the returned map. * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashIntObjMapFactory#newUpdatableMap(Integer[], * Object[]) newUpdatableMap(keys, values)}. * * @param keys the keys of the returned map * @param values the values of the returned map, each value is associated with the element * of the {@code keys} array at the same index * * @param <V> the value type of the returned map * @return a new updatable map with the given mappings * @throws IllegalArgumentException if {@code keys} and {@code values} arrays have different * length */ @Nonnull public static <V> HashIntObjMap<V> newUpdatableMap( @Nonnull Integer[] keys, @Nonnull V[] values) { return getDefaultFactory().<V>newUpdatableMap(keys, values); }
/** * Constructs a new updatable map which merge the mappings of the specified maps. On conflict, * mappings from the {@code map2} have priority over mappings from the {@code map1} with * the same keys. * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashIntObjMapFactory#newUpdatableMap(Map, * Map, int) newUpdatableMap(map1, map2, expectedSize)}. * * @param map1 the first map to merge * @param map2 the second map to merge * @param expectedSize the expected size of the returned map * @param <V> the value type of the returned map * @return a new updatable map which merge the mappings of the specified maps */ @Nonnull public static <V> HashIntObjMap<V> newUpdatableMap( @Nonnull Map<Integer, ? extends V> map1, @Nonnull Map<Integer, ? extends V> map2, int expectedSize) { return getDefaultFactory().<V>newUpdatableMap(map1, map2, expectedSize); }
/** * Constructs a new updatable map which merge the mappings of the specified maps. On conflict, * mappings from the {@code map2} have priority over mappings from the {@code map1} with * the same keys. * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashIntObjMapFactory#newUpdatableMap(Map, * Map) newUpdatableMap(map1, map2)}. * * @param map1 the first map to merge * @param map2 the second map to merge * * @param <V> the value type of the returned map * @return a new updatable map which merge the mappings of the specified maps */ @Nonnull public static <V> HashIntObjMap<V> newUpdatableMap( @Nonnull Map<Integer, ? extends V> map1, @Nonnull Map<Integer, ? extends V> map2) { return getDefaultFactory().<V>newUpdatableMap(map1, map2); }
/** * Constructs a new updatable map filled with mappings consumed by the callback within the given * closure. Mappings supplied later within the closure have priority over the mappings * passed earlier with the same keys. * * <p>Example: TODO * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashIntObjMapFactory#newUpdatableMap( * Consumer, int) newUpdatableMap(entriesSupplier, expectedSize)}. * * @param entriesSupplier the function which supply mappings for the returned map via * the callback passed in * @param expectedSize the expected size of the returned map * @param <V> the value type of the returned map * @return a new updatable map with mappings consumed by the callback within the given closure */ @Nonnull public static <V> HashIntObjMap<V> newUpdatableMap(@Nonnull Consumer<com.koloboke.function.IntObjConsumer<V>> entriesSupplier , int expectedSize) { return getDefaultFactory().<V>newUpdatableMap(entriesSupplier, expectedSize); }
/** * Constructs a new updatable map with the same mappings as the specified {@code map}. * * * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashIntObjMapFactory#newUpdatableMap( * Map) newUpdatableMap(map)}. * * @param map the map whose mappings are to be placed in the returned map * * @param <V> the value type of the returned map * @return a new updatable map with the same mappings as the specified {@code map} */ @Nonnull public static <V> HashIntObjMap<V> newUpdatableMap( @Nonnull Map<Integer, ? extends V> map) { return getDefaultFactory().<V>newUpdatableMap(map); }
/** * Constructs a new updatable map with the given mappings, i. e. pairs of elements from * the {@code keys} and {@code values} arrays at the same index. If {@code keys} array have * duplicate elements, value corresponding the key with the highest index is left * in the returned map. * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashIntObjMapFactory#newUpdatableMap(Integer[], * Object[], int) newUpdatableMap(keys, values, expectedSize)}. * * @param keys the keys of the returned map * @param values the values of the returned map, each value is associated with the element * of the {@code keys} array at the same index * @param expectedSize the expected size of the returned map * @param <V> the value type of the returned map * @return a new updatable map with the given mappings * @throws IllegalArgumentException if {@code keys} and {@code values} arrays have different * length */ @Nonnull public static <V> HashIntObjMap<V> newUpdatableMap( @Nonnull Integer[] keys, @Nonnull V[] values, int expectedSize) { return getDefaultFactory().<V>newUpdatableMap(keys, values, expectedSize); }
/** * Constructs a new updatable map filled with mappings consumed by the callback within the given * closure. Mappings supplied later within the closure have priority over the mappings * passed earlier with the same keys. * * <p>Example: TODO * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashIntObjMapFactory#newUpdatableMap( * Consumer) newUpdatableMap(entriesSupplier)}. * * @param entriesSupplier the function which supply mappings for the returned map via * the callback passed in * * @param <V> the value type of the returned map * @return a new updatable map with mappings consumed by the callback within the given closure */ @Nonnull public static <V> HashIntObjMap<V> newUpdatableMap(@Nonnull Consumer<com.koloboke.function.IntObjConsumer<V>> entriesSupplier ) { return getDefaultFactory().<V>newUpdatableMap(entriesSupplier); }
/** * Constructs a new updatable map which merge the mappings of the specified maps. On conflict, * mappings from the maps passed later in the argument list have priority over mappings * from the maps passed earlier with the same keys. * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashIntObjMapFactory#newUpdatableMap(Map, Map, * Map) newUpdatableMap(map1, map2, map3)}. * * @param map1 the first map to merge * @param map2 the second map to merge * @param map3 the third map to merge * * @param <V> the value type of the returned map * @return a new updatable map which merge the mappings of the specified maps */ @Nonnull public static <V> HashIntObjMap<V> newUpdatableMap( @Nonnull Map<Integer, ? extends V> map1, @Nonnull Map<Integer, ? extends V> map2, @Nonnull Map<Integer, ? extends V> map3) { return getDefaultFactory().<V>newUpdatableMap(map1, map2, map3); }
/** * Constructs a new updatable map filled with mappings consumed by the callback within the given * closure. Mappings supplied later within the closure have priority over the mappings * passed earlier with the same keys. * * <p>Example: TODO * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashIntObjMapFactory#newUpdatableMap( * Consumer) newUpdatableMap(entriesSupplier)}. * * @param entriesSupplier the function which supply mappings for the returned map via * the callback passed in * * @param <V> the value type of the returned map * @return a new updatable map with mappings consumed by the callback within the given closure */ @Nonnull public static <V> HashIntObjMap<V> newUpdatableMap(@Nonnull Consumer<com.koloboke.function.IntObjConsumer<V>> entriesSupplier ) { return getDefaultFactory().<V>newUpdatableMap(entriesSupplier); }
/** * Constructs a new updatable map which merge the mappings of the specified maps. On conflict, * mappings from the maps passed later in the argument list have priority over mappings * from the maps passed earlier with the same keys. * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashIntObjMapFactory#newUpdatableMap(Map, Map, * Map) newUpdatableMap(map1, map2, map3)}. * * @param map1 the first map to merge * @param map2 the second map to merge * @param map3 the third map to merge * * @param <V> the value type of the returned map * @return a new updatable map which merge the mappings of the specified maps */ @Nonnull public static <V> HashIntObjMap<V> newUpdatableMap( @Nonnull Map<Integer, ? extends V> map1, @Nonnull Map<Integer, ? extends V> map2, @Nonnull Map<Integer, ? extends V> map3) { return getDefaultFactory().<V>newUpdatableMap(map1, map2, map3); }
/** * Constructs a new updatable map which merge the mappings of the specified maps. On conflict, * mappings from the maps passed later in the argument list have priority over mappings * from the maps passed earlier with the same keys. * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashIntObjMapFactory#newUpdatableMap(Map, Map, * Map, Map) newUpdatableMap(map1, map2, map3, map4)}. * * @param map1 the first map to merge * @param map2 the second map to merge * @param map3 the third map to merge * @param map4 the fourth map to merge * * @param <V> the value type of the returned map * @return a new updatable map which merge the mappings of the specified maps */ @Nonnull public static <V> HashIntObjMap<V> newUpdatableMap( @Nonnull Map<Integer, ? extends V> map1, @Nonnull Map<Integer, ? extends V> map2, @Nonnull Map<Integer, ? extends V> map3, @Nonnull Map<Integer, ? extends V> map4) { return getDefaultFactory().<V>newUpdatableMap(map1, map2, map3, map4); }
/** * Constructs a new updatable map with the given mappings, i. e. pairs of elements from * the {@code keys} and {@code values} arrays at the same index. If {@code keys} array have * duplicate elements, value corresponding the key with the highest index is left * in the returned map. * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashIntObjMapFactory#newUpdatableMap(int[], Object[], int * ) newUpdatableMap(keys, values, expectedSize)}. * * @param keys the keys of the returned map * @param values the values of the returned map, each value is associated with the element * of the {@code keys} array at the same index * @param expectedSize the expected size of the returned map * @param <V> the value type of the returned map * @return a new updatable map with the given mappings * @throws IllegalArgumentException if {@code keys} and {@code values} arrays have different * length */ @Nonnull public static <V> HashIntObjMap<V> newUpdatableMap( @Nonnull int[] keys, @Nonnull V[] values, int expectedSize) { return getDefaultFactory().<V>newUpdatableMap(keys, values, expectedSize); }
/** * Constructs a new updatable map with the given mappings, i. e. pairs of elements from * the {@code keys} and {@code values} arrays at the same index. If {@code keys} array have * duplicate elements, value corresponding the key with the highest index is left * in the returned map. * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashIntObjMapFactory#newUpdatableMap(int[], Object[], int * ) newUpdatableMap(keys, values, expectedSize)}. * * @param keys the keys of the returned map * @param values the values of the returned map, each value is associated with the element * of the {@code keys} array at the same index * @param expectedSize the expected size of the returned map * @param <V> the value type of the returned map * @return a new updatable map with the given mappings * @throws IllegalArgumentException if {@code keys} and {@code values} arrays have different * length */ @Nonnull public static <V> HashIntObjMap<V> newUpdatableMap( @Nonnull int[] keys, @Nonnull V[] values, int expectedSize) { return getDefaultFactory().<V>newUpdatableMap(keys, values, expectedSize); }