/** * Constructs a new empty mutable map of the given expected size. * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashLongByteMapFactory#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 HashLongByteMap newMutableMap(int expectedSize) { return getDefaultFactory().newMutableMap(expectedSize); }
/** * Constructs a new empty updatable map of the default expected size. * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashLongByteMapFactory#newUpdatableMap() newUpdatableMap()}. * * @return a new empty updatable map */ @Nonnull public static HashLongByteMap 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 HashLongByteMapFactory#newMutableMap() newMutableMap()}. * * @return a new empty mutable map */ @Nonnull public static HashLongByteMap 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 HashLongByteMapFactory#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 HashLongByteMap newUpdatableMap(int expectedSize) { return getDefaultFactory().newUpdatableMap(expectedSize); }
/** * Constructs a new immutable map of the two specified mappings. * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashLongByteMapFactory#newImmutableMapOf(long, byte, * long, byte) 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 HashLongByteMap newImmutableMapOf( long k1, byte v1, long k2, byte v2) { return getDefaultFactory().newImmutableMapOf(k1, v1, k2, v2); }
/** * Constructs a new updatable map of the single specified mapping. * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashLongByteMapFactory#newUpdatableMapOf(long, byte * ) 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 HashLongByteMap newUpdatableMapOf( long k1, byte v1) { return getDefaultFactory().newUpdatableMapOf(k1, v1); }
/** * Constructs a new mutable map of the single specified mapping. * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashLongByteMapFactory#newMutableMapOf(long, byte * ) 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 HashLongByteMap newMutableMapOf( long k1, byte v1) { return getDefaultFactory().newMutableMapOf(k1, v1); }
/** * 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 HashLongByteMapFactory#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 HashLongByteMap newImmutableMap( @Nonnull Map<Long, Byte> map1, @Nonnull Map<Long, Byte> map2, int expectedSize) { return getDefaultFactory().newImmutableMap(map1, map2, expectedSize); }
/** * Constructs a new mutable map of the two specified mappings. * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashLongByteMapFactory#newMutableMapOf(long, byte, * long, byte) 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 HashLongByteMap newMutableMapOf( long k1, byte v1, long k2, byte v2) { return getDefaultFactory().newMutableMapOf(k1, v1, k2, v2); }
/** * Constructs a new updatable map of the two specified mappings. * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashLongByteMapFactory#newUpdatableMapOf(long, byte, * long, byte) 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 HashLongByteMap newUpdatableMapOf( long k1, byte v1, long k2, byte v2) { return getDefaultFactory().newUpdatableMapOf(k1, v1, k2, v2); }
/** * Constructs a new immutable map of the single specified mapping. * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashLongByteMapFactory#newImmutableMapOf(long, byte * ) 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 HashLongByteMap newImmutableMapOf( long k1, byte v1) { return getDefaultFactory().newImmutableMapOf(k1, v1); }
/** * 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 HashLongByteMapFactory#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 HashLongByteMap newMutableMap( @Nonnull Map<Long, Byte> map) { return getDefaultFactory().newMutableMap(map); }
/** * 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 HashLongByteMapFactory#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 HashLongByteMap newImmutableMap( @Nonnull Map<Long, Byte> map) { return getDefaultFactory().newImmutableMap(map); }
/** * 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 HashLongByteMapFactory#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 HashLongByteMap newImmutableMap(@Nonnull Consumer<net.openhft.koloboke.function.LongByteConsumer> entriesSupplier , int expectedSize) { return getDefaultFactory().newImmutableMap(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 HashLongByteMapFactory#newUpdatableMap(Long[], * Byte[], 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 * @return a new updatable map with the given mappings * @throws IllegalArgumentException if {@code keys} and {@code values} arrays have different * length */ @Nonnull public static HashLongByteMap newUpdatableMap( @Nonnull Long[] keys, @Nonnull Byte[] values, int expectedSize) { return getDefaultFactory().newUpdatableMap(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 HashLongByteMapFactory#newImmutableMap(long[], 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 HashLongByteMap newImmutableMap( @Nonnull long[] keys, @Nonnull byte[] values) { return getDefaultFactory().newImmutableMap(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 HashLongByteMapFactory#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 * @return a new updatable map which merge the mappings of the specified maps */ @Nonnull public static HashLongByteMap newUpdatableMap( @Nonnull Map<Long, Byte> map1, @Nonnull Map<Long, Byte> map2, int expectedSize) { return getDefaultFactory().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 HashLongByteMapFactory#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 HashLongByteMap newUpdatableMap( @Nonnull Map<Long, Byte> map1, @Nonnull Map<Long, Byte> map2) { return getDefaultFactory().newUpdatableMap(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 HashLongByteMapFactory#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 HashLongByteMap newImmutableMap( @Nonnull Map<Long, Byte> map1, @Nonnull Map<Long, Byte> map2) { return getDefaultFactory().newImmutableMap(map1, map2); }
/** * 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 HashLongByteMapFactory#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 HashLongByteMap newUpdatableMap( @Nonnull Map<Long, Byte> map) { return getDefaultFactory().newUpdatableMap(map); }