/** * Constructs a new empty updatable map of the default expected size. * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashShortIntMapFactory#newUpdatableMap() newUpdatableMap()}. * * @return a new empty updatable map */ @Nonnull public static HashShortIntMap newUpdatableMap() { return getDefaultFactory().newUpdatableMap(); }
/** * Constructs a new empty mutable map of the default expected size. * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashShortIntMapFactory#newMutableMap() newMutableMap()}. * * @return a new empty mutable map */ @Nonnull public static HashShortIntMap newMutableMap() { return getDefaultFactory().newMutableMap(); }
/** * Constructs a new empty updatable map of the given expected size. * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashShortIntMapFactory#newUpdatableMap(int) newUpdatableMap(expectedSize)}. * * @param expectedSize the expected size of the returned map * @return a new empty updatable map of the given expected size */ @Nonnull public static HashShortIntMap newUpdatableMap(int expectedSize) { return getDefaultFactory().newUpdatableMap(expectedSize); }
/** * Constructs a new empty mutable map of the given expected size. * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashShortIntMapFactory#newMutableMap(int) newMutableMap(expectedSize)}. * * @param expectedSize the expected size of the returned map * @return a new empty mutable map of the given expected size */ @Nonnull public static HashShortIntMap newMutableMap(int expectedSize) { return getDefaultFactory().newMutableMap(expectedSize); }
/** * Constructs a new updatable map of the single specified mapping. * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashShortIntMapFactory#newUpdatableMapOf(short, int * ) newUpdatableMapOf(k1, v1)}. * * @param k1 the key of the sole mapping * @param v1 the value of the sole mapping * @return a new updatable map of the single specified mapping */ @Nonnull public static HashShortIntMap newUpdatableMapOf( short k1, int v1) { return getDefaultFactory().newUpdatableMapOf(k1, v1); }
/** * Constructs a new immutable map of the single specified mapping. * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashShortIntMapFactory#newImmutableMapOf(short, int * ) newImmutableMapOf(k1, v1)}. * * @param k1 the key of the sole mapping * @param v1 the value of the sole mapping * @return a new immutable map of the single specified mapping */ @Nonnull public static HashShortIntMap newImmutableMapOf( short k1, int v1) { return getDefaultFactory().newImmutableMapOf(k1, v1); }
/** * Constructs a new mutable map of the single specified mapping. * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashShortIntMapFactory#newMutableMapOf(short, int * ) newMutableMapOf(k1, v1)}. * * @param k1 the key of the sole mapping * @param v1 the value of the sole mapping * @return a new mutable map of the single specified mapping */ @Nonnull public static HashShortIntMap newMutableMapOf( short k1, int v1) { return getDefaultFactory().newMutableMapOf(k1, v1); }
/** * 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 HashShortIntMapFactory#newUpdatableMap( * Map) newUpdatableMap(map)}. * * @param map the map whose mappings are to be placed in the returned map * * @return a new updatable map with the same mappings as the specified {@code map} */ @Nonnull public static HashShortIntMap newUpdatableMap( @Nonnull Map<Short, Integer> map) { return getDefaultFactory().newUpdatableMap(map); }
/** * Constructs a new updatable map of the two specified mappings. * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashShortIntMapFactory#newUpdatableMapOf(short, int, * short, int) newUpdatableMapOf(k1, v1, k2, v2)}. * * @param k1 the key of the first mapping * @param v1 the value of the first mapping * @param k2 the key of the second mapping * @param v2 the value of the second mapping * @return a new updatable map of the two specified mappings */ @Nonnull public static HashShortIntMap newUpdatableMapOf( short k1, int v1, short k2, int v2) { return getDefaultFactory().newUpdatableMapOf(k1, v1, k2, v2); }
/** * Constructs a new immutable map with the same mappings as the specified {@code map}. * * * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashShortIntMapFactory#newImmutableMap( * Map) newImmutableMap(map)}. * * @param map the map whose mappings are to be placed in the returned map * * @return a new immutable map with the same mappings as the specified {@code map} */ @Nonnull public static HashShortIntMap newImmutableMap( @Nonnull Map<Short, Integer> map) { return getDefaultFactory().newImmutableMap(map); }
/** * Constructs a new mutable map with the same mappings as the specified {@code map}. * * * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashShortIntMapFactory#newMutableMap( * Map) newMutableMap(map)}. * * @param map the map whose mappings are to be placed in the returned map * * @return a new mutable map with the same mappings as the specified {@code map} */ @Nonnull public static HashShortIntMap newMutableMap( @Nonnull Map<Short, Integer> map) { return getDefaultFactory().newMutableMap(map); }
/** * Constructs a new mutable map of the two specified mappings. * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashShortIntMapFactory#newMutableMapOf(short, int, * short, int) newMutableMapOf(k1, v1, k2, v2)}. * * @param k1 the key of the first mapping * @param v1 the value of the first mapping * @param k2 the key of the second mapping * @param v2 the value of the second mapping * @return a new mutable map of the two specified mappings */ @Nonnull public static HashShortIntMap newMutableMapOf( short k1, int v1, short k2, int v2) { return getDefaultFactory().newMutableMapOf(k1, v1, k2, v2); }
/** * Constructs a new immutable map of the two specified mappings. * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashShortIntMapFactory#newImmutableMapOf(short, int, * short, int) newImmutableMapOf(k1, v1, k2, v2)}. * * @param k1 the key of the first mapping * @param v1 the value of the first mapping * @param k2 the key of the second mapping * @param v2 the value of the second mapping * @return a new immutable map of the two specified mappings */ @Nonnull public static HashShortIntMap newImmutableMapOf( short k1, int v1, short k2, int v2) { return getDefaultFactory().newImmutableMapOf(k1, v1, k2, v2); }
/** * Constructs a new immutable 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 HashShortIntMapFactory#newImmutableMap(Map, * Map, int) newImmutableMap(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 * @return a new immutable map which merge the mappings of the specified maps */ @Nonnull public static HashShortIntMap newImmutableMap( @Nonnull Map<Short, Integer> map1, @Nonnull Map<Short, Integer> map2, int expectedSize) { return getDefaultFactory().newImmutableMap(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 HashShortIntMapFactory#newUpdatableMap(Map, * Map) newUpdatableMap(map1, map2)}. * * @param map1 the first map to merge * @param map2 the second map to merge * * @return a new updatable map which merge the mappings of the specified maps */ @Nonnull public static HashShortIntMap newUpdatableMap( @Nonnull Map<Short, Integer> map1, @Nonnull Map<Short, Integer> map2) { return getDefaultFactory().newUpdatableMap(map1, map2); }
/** * Constructs a new mutable map of the three specified mappings. * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashShortIntMapFactory#newMutableMapOf(short, int, * short, int, short, int) newMutableMapOf(k1, v1, k2, v2, * k3, v3)}. * * @param k1 the key of the first mapping * @param v1 the value of the first mapping * @param k2 the key of the second mapping * @param v2 the value of the second mapping * @param k3 the key of the third mapping * @param v3 the value of the third mapping * @return a new mutable map of the three specified mappings */ @Nonnull public static HashShortIntMap newMutableMapOf( short k1, int v1, short k2, int v2, short k3, int v3) { return getDefaultFactory().newMutableMapOf(k1, v1, k2, v2, k3, v3); }
/** * Constructs a new mutable 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 HashShortIntMapFactory#newMutableMap(Map, Map, * Map) newMutableMap(map1, map2, map3)}. * * @param map1 the first map to merge * @param map2 the second map to merge * @param map3 the third map to merge * * @return a new mutable map which merge the mappings of the specified maps */ @Nonnull public static HashShortIntMap newMutableMap( @Nonnull Map<Short, Integer> map1, @Nonnull Map<Short, Integer> map2, @Nonnull Map<Short, Integer> map3) { return getDefaultFactory().newMutableMap(map1, map2, map3); }
/** * Constructs a new mutable 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 HashShortIntMapFactory#newMutableMap(short[], int[], int * ) newMutableMap(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 * @return a new mutable map with the given mappings * @throws IllegalArgumentException if {@code keys} and {@code values} arrays have different * length */ @Nonnull public static HashShortIntMap newMutableMap( @Nonnull short[] keys, @Nonnull int[] values, int expectedSize) { return getDefaultFactory().newMutableMap(keys, values, expectedSize); }
/** * Constructs a new updatable map with the given mappings, i. e. pairs of elements from * the {@code keys} and {@code values} iterables at the same iteration position. If {@code keys} * have duplicate elements, value corresponding the key appeared last in the iteration is left * in the returned map. * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashShortIntMapFactory#newUpdatableMap(Iterable, Iterable, 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} iterable at the same iteration position * @param expectedSize the expected size of the returned map * @return a new updatable map with the given mappings * @throws IllegalArgumentException if {@code keys} and {@code values} have different size */ @Nonnull public static HashShortIntMap newUpdatableMap( @Nonnull Iterable<Short> keys, @Nonnull Iterable<Integer> values , int expectedSize) { return getDefaultFactory().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 HashShortIntMapFactory#newUpdatableMap(short[], int[] * ) 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 * * @return a new updatable map with the given mappings * @throws IllegalArgumentException if {@code keys} and {@code values} arrays have different * length */ @Nonnull public static HashShortIntMap newUpdatableMap( @Nonnull short[] keys, @Nonnull int[] values) { return getDefaultFactory().newUpdatableMap(keys, values); }