/** * 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 HashByteByteMapFactory#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 HashByteByteMap newImmutableMap( @Nonnull Map<Byte, Byte> map) { return getDefaultFactory().newImmutableMap(map); }
/** * Constructs a new immutable 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 HashByteByteMapFactory#newImmutableMap(Byte[], * Byte[]) newImmutableMap(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 immutable map with the given mappings * @throws IllegalArgumentException if {@code keys} and {@code values} arrays have different * length */ @Nonnull public static HashByteByteMap newImmutableMap( @Nonnull Byte[] keys, @Nonnull Byte[] values) { return getDefaultFactory().newImmutableMap(keys, values); }
/** * 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 HashByteByteMapFactory#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 HashByteByteMap newImmutableMap( @Nonnull Map<Byte, Byte> map) { return getDefaultFactory().newImmutableMap(map); }
/** * Constructs a new immutable 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 HashByteByteMapFactory#newImmutableMap(Iterable, Iterable, int * ) newImmutableMap(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 immutable map with the given mappings * @throws IllegalArgumentException if {@code keys} and {@code values} have different size */ @Nonnull public static HashByteByteMap newImmutableMap( @Nonnull Iterable<Byte> keys, @Nonnull Iterable<Byte> values , int expectedSize) { return getDefaultFactory().newImmutableMap(keys, values, expectedSize); }
/** * Constructs a new immutable 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 HashByteByteMapFactory#newImmutableMap(byte[], byte[] * ) newImmutableMap(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 immutable map with the given mappings * @throws IllegalArgumentException if {@code keys} and {@code values} arrays have different * length */ @Nonnull public static HashByteByteMap newImmutableMap( @Nonnull byte[] keys, @Nonnull byte[] values) { return getDefaultFactory().newImmutableMap(keys, values); }
/** * Constructs a new immutable 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 HashByteByteMapFactory#newImmutableMap(Iterable, Iterable * ) newImmutableMap(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} iterable at the same iteration position * * @return a new immutable map with the given mappings * @throws IllegalArgumentException if {@code keys} and {@code values} have different size */ @Nonnull public static HashByteByteMap newImmutableMap( @Nonnull Iterable<Byte> keys, @Nonnull Iterable<Byte> values ) { return getDefaultFactory().newImmutableMap(keys, values); }
/** * Constructs a new immutable 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 HashByteByteMapFactory#newImmutableMap(Map, Map, * Map) newImmutableMap(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 immutable map which merge the mappings of the specified maps */ @Nonnull public static HashByteByteMap newImmutableMap( @Nonnull Map<Byte, Byte> map1, @Nonnull Map<Byte, Byte> map2, @Nonnull Map<Byte, Byte> map3) { return getDefaultFactory().newImmutableMap(map1, map2, map3); }
/** * Constructs a new immutable 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 HashByteByteMapFactory#newImmutableMap( * Consumer) newImmutableMap(entriesSupplier)}. * * @param entriesSupplier the function which supply mappings for the returned map via * the callback passed in * * @return a new immutable map with mappings consumed by the callback within the given closure */ @Nonnull public static HashByteByteMap newImmutableMap(@Nonnull Consumer<com.koloboke.function.ByteByteConsumer> entriesSupplier ) { return getDefaultFactory().newImmutableMap(entriesSupplier); }
/** * 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 HashByteByteMapFactory#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 HashByteByteMap newImmutableMap( @Nonnull Map<Byte, Byte> map1, @Nonnull Map<Byte, Byte> map2, int expectedSize) { return getDefaultFactory().newImmutableMap(map1, map2, expectedSize); }
/** * 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 HashByteByteMapFactory#newImmutableMap(Map, * Map) newImmutableMap(map1, map2)}. * * @param map1 the first map to merge * @param map2 the second map to merge * * @return a new immutable map which merge the mappings of the specified maps */ @Nonnull public static HashByteByteMap newImmutableMap( @Nonnull Map<Byte, Byte> map1, @Nonnull Map<Byte, Byte> map2) { return getDefaultFactory().newImmutableMap(map1, map2); }
/** * 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 HashByteByteMapFactory#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 HashByteByteMap newImmutableMap( @Nonnull Map<Byte, Byte> map1, @Nonnull Map<Byte, Byte> map2, int expectedSize) { return getDefaultFactory().newImmutableMap(map1, map2, expectedSize); }
/** * 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 HashByteByteMapFactory#newImmutableMap(Map, * Map) newImmutableMap(map1, map2)}. * * @param map1 the first map to merge * @param map2 the second map to merge * * @return a new immutable map which merge the mappings of the specified maps */ @Nonnull public static HashByteByteMap newImmutableMap( @Nonnull Map<Byte, Byte> map1, @Nonnull Map<Byte, Byte> map2) { return getDefaultFactory().newImmutableMap(map1, map2); }
/** * Constructs a new immutable 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 HashByteByteMapFactory#newImmutableMap(Map, Map, * Map, Map) newImmutableMap(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 * * @return a new immutable map which merge the mappings of the specified maps */ @Nonnull public static HashByteByteMap newImmutableMap( @Nonnull Map<Byte, Byte> map1, @Nonnull Map<Byte, Byte> map2, @Nonnull Map<Byte, Byte> map3, @Nonnull Map<Byte, Byte> map4) { return getDefaultFactory().newImmutableMap(map1, map2, map3, map4); }
/** * Constructs a new immutable 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 HashByteByteMapFactory#newImmutableMap(Byte[], * Byte[]) newImmutableMap(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 immutable map with the given mappings * @throws IllegalArgumentException if {@code keys} and {@code values} arrays have different * length */ @Nonnull public static HashByteByteMap newImmutableMap( @Nonnull Byte[] keys, @Nonnull Byte[] values) { return getDefaultFactory().newImmutableMap(keys, values); }
/** * Constructs a new immutable 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 HashByteByteMapFactory#newImmutableMap(Map, Map, * Map, Map, int) newImmutableMap(map1, map2, map3, map4, expectedSize)}. * * @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 expectedSize the expected size of the returned map * @return a new immutable map which merge the mappings of the specified maps */ @Nonnull public static HashByteByteMap newImmutableMap( @Nonnull Map<Byte, Byte> map1, @Nonnull Map<Byte, Byte> map2, @Nonnull Map<Byte, Byte> map3, @Nonnull Map<Byte, Byte> map4, int expectedSize) { return getDefaultFactory().newImmutableMap(map1, map2, map3, map4, expectedSize); }
/** * Constructs a new immutable 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 HashByteByteMapFactory#newImmutableMap(Map, Map, * Map, int) newImmutableMap(map1, map2, map3, expectedSize)}. * * @param map1 the first map to merge * @param map2 the second map to merge * @param map3 the third 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 HashByteByteMap newImmutableMap( @Nonnull Map<Byte, Byte> map1, @Nonnull Map<Byte, Byte> map2, @Nonnull Map<Byte, Byte> map3, int expectedSize) { return getDefaultFactory().newImmutableMap(map1, map2, map3, expectedSize); }
/** * Constructs a new immutable 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 HashByteByteMapFactory#newImmutableMap( * Consumer, int) newImmutableMap(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 * @return a new immutable map with mappings consumed by the callback within the given closure */ @Nonnull public static HashByteByteMap newImmutableMap(@Nonnull Consumer<com.koloboke.function.ByteByteConsumer> entriesSupplier , int expectedSize) { return getDefaultFactory().newImmutableMap(entriesSupplier, expectedSize); }
/** * Constructs a new immutable 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 HashByteByteMapFactory#newImmutableMap(Map, Map, * Map, int) newImmutableMap(map1, map2, map3, expectedSize)}. * * @param map1 the first map to merge * @param map2 the second map to merge * @param map3 the third 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 HashByteByteMap newImmutableMap( @Nonnull Map<Byte, Byte> map1, @Nonnull Map<Byte, Byte> map2, @Nonnull Map<Byte, Byte> map3, int expectedSize) { return getDefaultFactory().newImmutableMap(map1, map2, map3, expectedSize); }
/** * Constructs a new immutable 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 HashByteByteMapFactory#newImmutableMap( * Consumer, int) newImmutableMap(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 * @return a new immutable map with mappings consumed by the callback within the given closure */ @Nonnull public static HashByteByteMap newImmutableMap(@Nonnull Consumer<com.koloboke.function.ByteByteConsumer> entriesSupplier , int expectedSize) { return getDefaultFactory().newImmutableMap(entriesSupplier, expectedSize); }
/** * Constructs a new immutable 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 HashByteByteMapFactory#newImmutableMap(Map, Map, * Map) newImmutableMap(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 immutable map which merge the mappings of the specified maps */ @Nonnull public static HashByteByteMap newImmutableMap( @Nonnull Map<Byte, Byte> map1, @Nonnull Map<Byte, Byte> map2, @Nonnull Map<Byte, Byte> map3) { return getDefaultFactory().newImmutableMap(map1, map2, map3); }