public interface HashShortLongMapFactory extends ShortLongMapFactory<HashShortLongMapFactory>, ShortHashFactory<HashShortLongMapFactory>
HashShortLongMap
s.Modifier and Type | Method and Description |
---|---|
HashShortLongMap |
newImmutableMap(Consumer<ShortLongConsumer> entriesSupplier)
Constructs a new immutable map filled with mappings consumed by the callback within the given
closure.
|
HashShortLongMap |
newImmutableMap(Consumer<ShortLongConsumer> entriesSupplier,
int expectedSize)
Constructs a new immutable map filled with mappings consumed by the callback within the given
closure.
|
HashShortLongMap |
newImmutableMap(Iterable<Short> keys,
Iterable<Long> values)
Constructs a new immutable map with the given mappings, i.
|
HashShortLongMap |
newImmutableMap(Iterable<Short> keys,
Iterable<Long> values,
int expectedSize)
Constructs a new immutable map with the given mappings, i.
|
HashShortLongMap |
newImmutableMap(Map<Short,Long> map)
Constructs a new immutable map with the same mappings as the specified
map . |
HashShortLongMap |
newImmutableMap(Map<Short,Long> map1,
Map<Short,Long> map2)
Constructs a new immutable map which merge the mappings of the specified maps.
|
HashShortLongMap |
newImmutableMap(Map<Short,Long> map1,
Map<Short,Long> map2,
int expectedSize)
Constructs a new immutable map which merge the mappings of the specified maps.
|
HashShortLongMap |
newImmutableMap(Map<Short,Long> map1,
Map<Short,Long> map2,
Map<Short,Long> map3)
Constructs a new immutable map which merge the mappings of the specified maps.
|
HashShortLongMap |
newImmutableMap(Map<Short,Long> map1,
Map<Short,Long> map2,
Map<Short,Long> map3,
int expectedSize)
Constructs a new immutable map which merge the mappings of the specified maps.
|
HashShortLongMap |
newImmutableMap(Map<Short,Long> map1,
Map<Short,Long> map2,
Map<Short,Long> map3,
Map<Short,Long> map4)
Constructs a new immutable map which merge the mappings of the specified maps.
|
HashShortLongMap |
newImmutableMap(Map<Short,Long> map1,
Map<Short,Long> map2,
Map<Short,Long> map3,
Map<Short,Long> map4,
int expectedSize)
Constructs a new immutable map which merge the mappings of the specified maps.
|
HashShortLongMap |
newImmutableMap(Map<Short,Long> map1,
Map<Short,Long> map2,
Map<Short,Long> map3,
Map<Short,Long> map4,
Map<Short,Long> map5)
Constructs a new immutable map which merge the mappings of the specified maps.
|
HashShortLongMap |
newImmutableMap(Map<Short,Long> map1,
Map<Short,Long> map2,
Map<Short,Long> map3,
Map<Short,Long> map4,
Map<Short,Long> map5,
int expectedSize)
Constructs a new immutable map which merge the mappings of the specified maps.
|
HashShortLongMap |
newImmutableMap(short[] keys,
long[] values)
Constructs a new immutable map with the given mappings, i.
|
HashShortLongMap |
newImmutableMap(Short[] keys,
Long[] values)
Constructs a new immutable map with the given mappings, i.
|
HashShortLongMap |
newImmutableMap(short[] keys,
long[] values,
int expectedSize)
Constructs a new immutable map with the given mappings, i.
|
HashShortLongMap |
newImmutableMap(Short[] keys,
Long[] values,
int expectedSize)
Constructs a new immutable map with the given mappings, i.
|
HashShortLongMap |
newImmutableMapOf(short k1,
long v1)
Constructs a new immutable map of the single specified mapping.
|
HashShortLongMap |
newImmutableMapOf(short k1,
long v1,
short k2,
long v2)
Constructs a new immutable map of the two specified mappings.
|
HashShortLongMap |
newImmutableMapOf(short k1,
long v1,
short k2,
long v2,
short k3,
long v3)
Constructs a new immutable map of the three specified mappings.
|
HashShortLongMap |
newImmutableMapOf(short k1,
long v1,
short k2,
long v2,
short k3,
long v3,
short k4,
long v4)
Constructs a new immutable map of the four specified mappings.
|
HashShortLongMap |
newImmutableMapOf(short k1,
long v1,
short k2,
long v2,
short k3,
long v3,
short k4,
long v4,
short k5,
long v5)
Constructs a new immutable map of the five specified mappings.
|
HashShortLongMap |
newMutableMap()
Constructs a new empty mutable map of the default expected size.
|
HashShortLongMap |
newMutableMap(Consumer<ShortLongConsumer> entriesSupplier)
Constructs a new mutable map filled with mappings consumed by the callback within the given
closure.
|
HashShortLongMap |
newMutableMap(Consumer<ShortLongConsumer> entriesSupplier,
int expectedSize)
Constructs a new mutable map filled with mappings consumed by the callback within the given
closure.
|
HashShortLongMap |
newMutableMap(int expectedSize)
Constructs a new empty mutable map of the given expected size.
|
HashShortLongMap |
newMutableMap(Iterable<Short> keys,
Iterable<Long> values)
Constructs a new mutable map with the given mappings, i.
|
HashShortLongMap |
newMutableMap(Iterable<Short> keys,
Iterable<Long> values,
int expectedSize)
Constructs a new mutable map with the given mappings, i.
|
HashShortLongMap |
newMutableMap(Map<Short,Long> map)
Constructs a new mutable map with the same mappings as the specified
map . |
HashShortLongMap |
newMutableMap(Map<Short,Long> map1,
Map<Short,Long> map2)
Constructs a new mutable map which merge the mappings of the specified maps.
|
HashShortLongMap |
newMutableMap(Map<Short,Long> map1,
Map<Short,Long> map2,
int expectedSize)
Constructs a new mutable map which merge the mappings of the specified maps.
|
HashShortLongMap |
newMutableMap(Map<Short,Long> map1,
Map<Short,Long> map2,
Map<Short,Long> map3)
Constructs a new mutable map which merge the mappings of the specified maps.
|
HashShortLongMap |
newMutableMap(Map<Short,Long> map1,
Map<Short,Long> map2,
Map<Short,Long> map3,
int expectedSize)
Constructs a new mutable map which merge the mappings of the specified maps.
|
HashShortLongMap |
newMutableMap(Map<Short,Long> map1,
Map<Short,Long> map2,
Map<Short,Long> map3,
Map<Short,Long> map4)
Constructs a new mutable map which merge the mappings of the specified maps.
|
HashShortLongMap |
newMutableMap(Map<Short,Long> map1,
Map<Short,Long> map2,
Map<Short,Long> map3,
Map<Short,Long> map4,
int expectedSize)
Constructs a new mutable map which merge the mappings of the specified maps.
|
HashShortLongMap |
newMutableMap(Map<Short,Long> map1,
Map<Short,Long> map2,
Map<Short,Long> map3,
Map<Short,Long> map4,
Map<Short,Long> map5)
Constructs a new mutable map which merge the mappings of the specified maps.
|
HashShortLongMap |
newMutableMap(Map<Short,Long> map1,
Map<Short,Long> map2,
Map<Short,Long> map3,
Map<Short,Long> map4,
Map<Short,Long> map5,
int expectedSize)
Constructs a new mutable map which merge the mappings of the specified maps.
|
HashShortLongMap |
newMutableMap(short[] keys,
long[] values)
Constructs a new mutable map with the given mappings, i.
|
HashShortLongMap |
newMutableMap(Short[] keys,
Long[] values)
Constructs a new mutable map with the given mappings, i.
|
HashShortLongMap |
newMutableMap(short[] keys,
long[] values,
int expectedSize)
Constructs a new mutable map with the given mappings, i.
|
HashShortLongMap |
newMutableMap(Short[] keys,
Long[] values,
int expectedSize)
Constructs a new mutable map with the given mappings, i.
|
HashShortLongMap |
newMutableMapOf(short k1,
long v1)
Constructs a new mutable map of the single specified mapping.
|
HashShortLongMap |
newMutableMapOf(short k1,
long v1,
short k2,
long v2)
Constructs a new mutable map of the two specified mappings.
|
HashShortLongMap |
newMutableMapOf(short k1,
long v1,
short k2,
long v2,
short k3,
long v3)
Constructs a new mutable map of the three specified mappings.
|
HashShortLongMap |
newMutableMapOf(short k1,
long v1,
short k2,
long v2,
short k3,
long v3,
short k4,
long v4)
Constructs a new mutable map of the four specified mappings.
|
HashShortLongMap |
newMutableMapOf(short k1,
long v1,
short k2,
long v2,
short k3,
long v3,
short k4,
long v4,
short k5,
long v5)
Constructs a new mutable map of the five specified mappings.
|
HashShortLongMap |
newUpdatableMap()
Constructs a new empty updatable map of the default expected size.
|
HashShortLongMap |
newUpdatableMap(Consumer<ShortLongConsumer> entriesSupplier)
Constructs a new updatable map filled with mappings consumed by the callback within the given
closure.
|
HashShortLongMap |
newUpdatableMap(Consumer<ShortLongConsumer> entriesSupplier,
int expectedSize)
Constructs a new updatable map filled with mappings consumed by the callback within the given
closure.
|
HashShortLongMap |
newUpdatableMap(int expectedSize)
Constructs a new empty updatable map of the given expected size.
|
HashShortLongMap |
newUpdatableMap(Iterable<Short> keys,
Iterable<Long> values)
Constructs a new updatable map with the given mappings, i.
|
HashShortLongMap |
newUpdatableMap(Iterable<Short> keys,
Iterable<Long> values,
int expectedSize)
Constructs a new updatable map with the given mappings, i.
|
HashShortLongMap |
newUpdatableMap(Map<Short,Long> map)
Constructs a new updatable map with the same mappings as the specified
map . |
HashShortLongMap |
newUpdatableMap(Map<Short,Long> map1,
Map<Short,Long> map2)
Constructs a new updatable map which merge the mappings of the specified maps.
|
HashShortLongMap |
newUpdatableMap(Map<Short,Long> map1,
Map<Short,Long> map2,
int expectedSize)
Constructs a new updatable map which merge the mappings of the specified maps.
|
HashShortLongMap |
newUpdatableMap(Map<Short,Long> map1,
Map<Short,Long> map2,
Map<Short,Long> map3)
Constructs a new updatable map which merge the mappings of the specified maps.
|
HashShortLongMap |
newUpdatableMap(Map<Short,Long> map1,
Map<Short,Long> map2,
Map<Short,Long> map3,
int expectedSize)
Constructs a new updatable map which merge the mappings of the specified maps.
|
HashShortLongMap |
newUpdatableMap(Map<Short,Long> map1,
Map<Short,Long> map2,
Map<Short,Long> map3,
Map<Short,Long> map4)
Constructs a new updatable map which merge the mappings of the specified maps.
|
HashShortLongMap |
newUpdatableMap(Map<Short,Long> map1,
Map<Short,Long> map2,
Map<Short,Long> map3,
Map<Short,Long> map4,
int expectedSize)
Constructs a new updatable map which merge the mappings of the specified maps.
|
HashShortLongMap |
newUpdatableMap(Map<Short,Long> map1,
Map<Short,Long> map2,
Map<Short,Long> map3,
Map<Short,Long> map4,
Map<Short,Long> map5)
Constructs a new updatable map which merge the mappings of the specified maps.
|
HashShortLongMap |
newUpdatableMap(Map<Short,Long> map1,
Map<Short,Long> map2,
Map<Short,Long> map3,
Map<Short,Long> map4,
Map<Short,Long> map5,
int expectedSize)
Constructs a new updatable map which merge the mappings of the specified maps.
|
HashShortLongMap |
newUpdatableMap(short[] keys,
long[] values)
Constructs a new updatable map with the given mappings, i.
|
HashShortLongMap |
newUpdatableMap(Short[] keys,
Long[] values)
Constructs a new updatable map with the given mappings, i.
|
HashShortLongMap |
newUpdatableMap(short[] keys,
long[] values,
int expectedSize)
Constructs a new updatable map with the given mappings, i.
|
HashShortLongMap |
newUpdatableMap(Short[] keys,
Long[] values,
int expectedSize)
Constructs a new updatable map with the given mappings, i.
|
HashShortLongMap |
newUpdatableMapOf(short k1,
long v1)
Constructs a new updatable map of the single specified mapping.
|
HashShortLongMap |
newUpdatableMapOf(short k1,
long v1,
short k2,
long v2)
Constructs a new updatable map of the two specified mappings.
|
HashShortLongMap |
newUpdatableMapOf(short k1,
long v1,
short k2,
long v2,
short k3,
long v3)
Constructs a new updatable map of the three specified mappings.
|
HashShortLongMap |
newUpdatableMapOf(short k1,
long v1,
short k2,
long v2,
short k3,
long v3,
short k4,
long v4)
Constructs a new updatable map of the four specified mappings.
|
HashShortLongMap |
newUpdatableMapOf(short k1,
long v1,
short k2,
long v2,
short k3,
long v3,
short k4,
long v4,
short k5,
long v5)
Constructs a new updatable map of the five specified mappings.
|
getDefaultValue, withDefaultValue
getLowerKeyDomainBound, getUpperKeyDomainBound, withKeysDomain, withKeysDomainComplement
getHashConfig, withHashConfig
getDefaultExpectedSize, withDefaultExpectedSize
@Nonnull HashShortLongMap newMutableMap()
ShortLongMapFactory
newMutableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
@Nonnull HashShortLongMap newMutableMap(int expectedSize)
ShortLongMapFactory
newMutableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
expectedSize
- the expected size of the returned map@Nonnull HashShortLongMap newMutableMap(@Nonnull Map<Short,Long> map1, @Nonnull Map<Short,Long> map2, int expectedSize)
ShortLongMapFactory
map2
have priority over mappings from the map1
with
the same keys.newMutableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
map1
- the first map to mergemap2
- the second map to mergeexpectedSize
- the expected size of the returned map@Nonnull HashShortLongMap newMutableMap(@Nonnull Map<Short,Long> map1, @Nonnull Map<Short,Long> map2, @Nonnull Map<Short,Long> map3, int expectedSize)
ShortLongMapFactory
newMutableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
map1
- the first map to mergemap2
- the second map to mergemap3
- the third map to mergeexpectedSize
- the expected size of the returned map@Nonnull HashShortLongMap newMutableMap(@Nonnull Map<Short,Long> map1, @Nonnull Map<Short,Long> map2, @Nonnull Map<Short,Long> map3, @Nonnull Map<Short,Long> map4, int expectedSize)
ShortLongMapFactory
newMutableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
map1
- the first map to mergemap2
- the second map to mergemap3
- the third map to mergemap4
- the fourth map to mergeexpectedSize
- the expected size of the returned map@Nonnull HashShortLongMap newMutableMap(@Nonnull Map<Short,Long> map1, @Nonnull Map<Short,Long> map2, @Nonnull Map<Short,Long> map3, @Nonnull Map<Short,Long> map4, @Nonnull Map<Short,Long> map5, int expectedSize)
ShortLongMapFactory
newMutableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
map1
- the first map to mergemap2
- the second map to mergemap3
- the third map to mergemap4
- the fourth map to mergemap5
- the fifth map to mergeexpectedSize
- the expected size of the returned map@Nonnull HashShortLongMap newMutableMap(@Nonnull Consumer<ShortLongConsumer> entriesSupplier, int expectedSize)
ShortLongMapFactory
Example: TODO
newMutableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
entriesSupplier
- the function which supply mappings for the returned map via
the callback passed inexpectedSize
- the expected size of the returned map@Nonnull HashShortLongMap newMutableMap(@Nonnull short[] keys, @Nonnull long[] values, int expectedSize)
ShortLongMapFactory
keys
and values
arrays at the same index. If keys
array have
duplicate elements, value corresponding the key with the highest index is left
in the returned map.newMutableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
keys
- the keys of the returned mapvalues
- the values of the returned map, each value is associated with the element
of the keys
array at the same indexexpectedSize
- the expected size of the returned map@Nonnull HashShortLongMap newMutableMap(@Nonnull Short[] keys, @Nonnull Long[] values, int expectedSize)
ShortLongMapFactory
keys
and values
arrays at the same index. If keys
array have
duplicate elements, value corresponding the key with the highest index is left
in the returned map.newMutableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
keys
- the keys of the returned mapvalues
- the values of the returned map, each value is associated with the element
of the keys
array at the same indexexpectedSize
- the expected size of the returned map@Nonnull HashShortLongMap newMutableMap(@Nonnull Iterable<Short> keys, @Nonnull Iterable<Long> values, int expectedSize)
ShortLongMapFactory
keys
and values
iterables at the same iteration position. If keys
have duplicate elements, value corresponding the key appeared last in the iteration is left
in the returned map.newMutableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
keys
- the keys of the returned mapvalues
- the values of the returned map, each value is associated with the element
of the keys
iterable at the same iteration positionexpectedSize
- the expected size of the returned map@Nonnull HashShortLongMap newMutableMap(@Nonnull Map<Short,Long> map)
ShortLongMapFactory
map
.newMutableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
map
- the map whose mappings are to be placed in the returned mapmap
@Nonnull HashShortLongMap newMutableMap(@Nonnull Map<Short,Long> map1, @Nonnull Map<Short,Long> map2)
ShortLongMapFactory
map2
have priority over mappings from the map1
with
the same keys.newMutableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
map1
- the first map to mergemap2
- the second map to merge@Nonnull HashShortLongMap newMutableMap(@Nonnull Map<Short,Long> map1, @Nonnull Map<Short,Long> map2, @Nonnull Map<Short,Long> map3)
ShortLongMapFactory
newMutableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
map1
- the first map to mergemap2
- the second map to mergemap3
- the third map to merge@Nonnull HashShortLongMap newMutableMap(@Nonnull Map<Short,Long> map1, @Nonnull Map<Short,Long> map2, @Nonnull Map<Short,Long> map3, @Nonnull Map<Short,Long> map4)
ShortLongMapFactory
newMutableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
map1
- the first map to mergemap2
- the second map to mergemap3
- the third map to mergemap4
- the fourth map to merge@Nonnull HashShortLongMap newMutableMap(@Nonnull Map<Short,Long> map1, @Nonnull Map<Short,Long> map2, @Nonnull Map<Short,Long> map3, @Nonnull Map<Short,Long> map4, @Nonnull Map<Short,Long> map5)
ShortLongMapFactory
newMutableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
map1
- the first map to mergemap2
- the second map to mergemap3
- the third map to mergemap4
- the fourth map to mergemap5
- the fifth map to merge@Nonnull HashShortLongMap newMutableMap(@Nonnull Consumer<ShortLongConsumer> entriesSupplier)
ShortLongMapFactory
Example: TODO
newMutableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
entriesSupplier
- the function which supply mappings for the returned map via
the callback passed in@Nonnull HashShortLongMap newMutableMap(@Nonnull short[] keys, @Nonnull long[] values)
ShortLongMapFactory
keys
and values
arrays at the same index. If keys
array have
duplicate elements, value corresponding the key with the highest index is left
in the returned map.newMutableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
keys
- the keys of the returned mapvalues
- the values of the returned map, each value is associated with the element
of the keys
array at the same index@Nonnull HashShortLongMap newMutableMap(@Nonnull Short[] keys, @Nonnull Long[] values)
ShortLongMapFactory
keys
and values
arrays at the same index. If keys
array have
duplicate elements, value corresponding the key with the highest index is left
in the returned map.newMutableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
keys
- the keys of the returned mapvalues
- the values of the returned map, each value is associated with the element
of the keys
array at the same index@Nonnull HashShortLongMap newMutableMap(@Nonnull Iterable<Short> keys, @Nonnull Iterable<Long> values)
ShortLongMapFactory
keys
and values
iterables at the same iteration position. If keys
have duplicate elements, value corresponding the key appeared last in the iteration is left
in the returned map.newMutableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
keys
- the keys of the returned mapvalues
- the values of the returned map, each value is associated with the element
of the keys
iterable at the same iteration position@Nonnull HashShortLongMap newMutableMapOf(short k1, long v1)
ShortLongMapFactory
newMutableMapOf
in interface ShortLongMapFactory<HashShortLongMapFactory>
k1
- the key of the sole mappingv1
- the value of the sole mapping@Nonnull HashShortLongMap newMutableMapOf(short k1, long v1, short k2, long v2)
ShortLongMapFactory
newMutableMapOf
in interface ShortLongMapFactory<HashShortLongMapFactory>
k1
- the key of the first mappingv1
- the value of the first mappingk2
- the key of the second mappingv2
- the value of the second mapping@Nonnull HashShortLongMap newMutableMapOf(short k1, long v1, short k2, long v2, short k3, long v3)
ShortLongMapFactory
newMutableMapOf
in interface ShortLongMapFactory<HashShortLongMapFactory>
k1
- the key of the first mappingv1
- the value of the first mappingk2
- the key of the second mappingv2
- the value of the second mappingk3
- the key of the third mappingv3
- the value of the third mapping@Nonnull HashShortLongMap newMutableMapOf(short k1, long v1, short k2, long v2, short k3, long v3, short k4, long v4)
ShortLongMapFactory
newMutableMapOf
in interface ShortLongMapFactory<HashShortLongMapFactory>
k1
- the key of the first mappingv1
- the value of the first mappingk2
- the key of the second mappingv2
- the value of the second mappingk3
- the key of the third mappingv3
- the value of the third mappingk4
- the key of the fourth mappingv4
- the value of the fourth mapping@Nonnull HashShortLongMap newMutableMapOf(short k1, long v1, short k2, long v2, short k3, long v3, short k4, long v4, short k5, long v5)
ShortLongMapFactory
newMutableMapOf
in interface ShortLongMapFactory<HashShortLongMapFactory>
k1
- the key of the first mappingv1
- the value of the first mappingk2
- the key of the second mappingv2
- the value of the second mappingk3
- the key of the third mappingv3
- the value of the third mappingk4
- the key of the fourth mappingv4
- the value of the fourth mappingk5
- the key of the fifth mappingv5
- the value of the fifth mapping@Nonnull HashShortLongMap newUpdatableMap()
ShortLongMapFactory
newUpdatableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
@Nonnull HashShortLongMap newUpdatableMap(int expectedSize)
ShortLongMapFactory
newUpdatableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
expectedSize
- the expected size of the returned map@Nonnull HashShortLongMap newUpdatableMap(@Nonnull Map<Short,Long> map1, @Nonnull Map<Short,Long> map2, int expectedSize)
ShortLongMapFactory
map2
have priority over mappings from the map1
with
the same keys.newUpdatableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
map1
- the first map to mergemap2
- the second map to mergeexpectedSize
- the expected size of the returned map@Nonnull HashShortLongMap newUpdatableMap(@Nonnull Map<Short,Long> map1, @Nonnull Map<Short,Long> map2, @Nonnull Map<Short,Long> map3, int expectedSize)
ShortLongMapFactory
newUpdatableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
map1
- the first map to mergemap2
- the second map to mergemap3
- the third map to mergeexpectedSize
- the expected size of the returned map@Nonnull HashShortLongMap newUpdatableMap(@Nonnull Map<Short,Long> map1, @Nonnull Map<Short,Long> map2, @Nonnull Map<Short,Long> map3, @Nonnull Map<Short,Long> map4, int expectedSize)
ShortLongMapFactory
newUpdatableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
map1
- the first map to mergemap2
- the second map to mergemap3
- the third map to mergemap4
- the fourth map to mergeexpectedSize
- the expected size of the returned map@Nonnull HashShortLongMap newUpdatableMap(@Nonnull Map<Short,Long> map1, @Nonnull Map<Short,Long> map2, @Nonnull Map<Short,Long> map3, @Nonnull Map<Short,Long> map4, @Nonnull Map<Short,Long> map5, int expectedSize)
ShortLongMapFactory
newUpdatableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
map1
- the first map to mergemap2
- the second map to mergemap3
- the third map to mergemap4
- the fourth map to mergemap5
- the fifth map to mergeexpectedSize
- the expected size of the returned map@Nonnull HashShortLongMap newUpdatableMap(@Nonnull Consumer<ShortLongConsumer> entriesSupplier, int expectedSize)
ShortLongMapFactory
Example: TODO
newUpdatableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
entriesSupplier
- the function which supply mappings for the returned map via
the callback passed inexpectedSize
- the expected size of the returned map@Nonnull HashShortLongMap newUpdatableMap(@Nonnull short[] keys, @Nonnull long[] values, int expectedSize)
ShortLongMapFactory
keys
and values
arrays at the same index. If keys
array have
duplicate elements, value corresponding the key with the highest index is left
in the returned map.newUpdatableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
keys
- the keys of the returned mapvalues
- the values of the returned map, each value is associated with the element
of the keys
array at the same indexexpectedSize
- the expected size of the returned map@Nonnull HashShortLongMap newUpdatableMap(@Nonnull Short[] keys, @Nonnull Long[] values, int expectedSize)
ShortLongMapFactory
keys
and values
arrays at the same index. If keys
array have
duplicate elements, value corresponding the key with the highest index is left
in the returned map.newUpdatableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
keys
- the keys of the returned mapvalues
- the values of the returned map, each value is associated with the element
of the keys
array at the same indexexpectedSize
- the expected size of the returned map@Nonnull HashShortLongMap newUpdatableMap(@Nonnull Iterable<Short> keys, @Nonnull Iterable<Long> values, int expectedSize)
ShortLongMapFactory
keys
and values
iterables at the same iteration position. If keys
have duplicate elements, value corresponding the key appeared last in the iteration is left
in the returned map.newUpdatableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
keys
- the keys of the returned mapvalues
- the values of the returned map, each value is associated with the element
of the keys
iterable at the same iteration positionexpectedSize
- the expected size of the returned map@Nonnull HashShortLongMap newUpdatableMap(@Nonnull Map<Short,Long> map)
ShortLongMapFactory
map
.newUpdatableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
map
- the map whose mappings are to be placed in the returned mapmap
@Nonnull HashShortLongMap newUpdatableMap(@Nonnull Map<Short,Long> map1, @Nonnull Map<Short,Long> map2)
ShortLongMapFactory
map2
have priority over mappings from the map1
with
the same keys.newUpdatableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
map1
- the first map to mergemap2
- the second map to merge@Nonnull HashShortLongMap newUpdatableMap(@Nonnull Map<Short,Long> map1, @Nonnull Map<Short,Long> map2, @Nonnull Map<Short,Long> map3)
ShortLongMapFactory
newUpdatableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
map1
- the first map to mergemap2
- the second map to mergemap3
- the third map to merge@Nonnull HashShortLongMap newUpdatableMap(@Nonnull Map<Short,Long> map1, @Nonnull Map<Short,Long> map2, @Nonnull Map<Short,Long> map3, @Nonnull Map<Short,Long> map4)
ShortLongMapFactory
newUpdatableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
map1
- the first map to mergemap2
- the second map to mergemap3
- the third map to mergemap4
- the fourth map to merge@Nonnull HashShortLongMap newUpdatableMap(@Nonnull Map<Short,Long> map1, @Nonnull Map<Short,Long> map2, @Nonnull Map<Short,Long> map3, @Nonnull Map<Short,Long> map4, @Nonnull Map<Short,Long> map5)
ShortLongMapFactory
newUpdatableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
map1
- the first map to mergemap2
- the second map to mergemap3
- the third map to mergemap4
- the fourth map to mergemap5
- the fifth map to merge@Nonnull HashShortLongMap newUpdatableMap(@Nonnull Consumer<ShortLongConsumer> entriesSupplier)
ShortLongMapFactory
Example: TODO
newUpdatableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
entriesSupplier
- the function which supply mappings for the returned map via
the callback passed in@Nonnull HashShortLongMap newUpdatableMap(@Nonnull short[] keys, @Nonnull long[] values)
ShortLongMapFactory
keys
and values
arrays at the same index. If keys
array have
duplicate elements, value corresponding the key with the highest index is left
in the returned map.newUpdatableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
keys
- the keys of the returned mapvalues
- the values of the returned map, each value is associated with the element
of the keys
array at the same index@Nonnull HashShortLongMap newUpdatableMap(@Nonnull Short[] keys, @Nonnull Long[] values)
ShortLongMapFactory
keys
and values
arrays at the same index. If keys
array have
duplicate elements, value corresponding the key with the highest index is left
in the returned map.newUpdatableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
keys
- the keys of the returned mapvalues
- the values of the returned map, each value is associated with the element
of the keys
array at the same index@Nonnull HashShortLongMap newUpdatableMap(@Nonnull Iterable<Short> keys, @Nonnull Iterable<Long> values)
ShortLongMapFactory
keys
and values
iterables at the same iteration position. If keys
have duplicate elements, value corresponding the key appeared last in the iteration is left
in the returned map.newUpdatableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
keys
- the keys of the returned mapvalues
- the values of the returned map, each value is associated with the element
of the keys
iterable at the same iteration position@Nonnull HashShortLongMap newUpdatableMapOf(short k1, long v1)
ShortLongMapFactory
newUpdatableMapOf
in interface ShortLongMapFactory<HashShortLongMapFactory>
k1
- the key of the sole mappingv1
- the value of the sole mapping@Nonnull HashShortLongMap newUpdatableMapOf(short k1, long v1, short k2, long v2)
ShortLongMapFactory
newUpdatableMapOf
in interface ShortLongMapFactory<HashShortLongMapFactory>
k1
- the key of the first mappingv1
- the value of the first mappingk2
- the key of the second mappingv2
- the value of the second mapping@Nonnull HashShortLongMap newUpdatableMapOf(short k1, long v1, short k2, long v2, short k3, long v3)
ShortLongMapFactory
newUpdatableMapOf
in interface ShortLongMapFactory<HashShortLongMapFactory>
k1
- the key of the first mappingv1
- the value of the first mappingk2
- the key of the second mappingv2
- the value of the second mappingk3
- the key of the third mappingv3
- the value of the third mapping@Nonnull HashShortLongMap newUpdatableMapOf(short k1, long v1, short k2, long v2, short k3, long v3, short k4, long v4)
ShortLongMapFactory
newUpdatableMapOf
in interface ShortLongMapFactory<HashShortLongMapFactory>
k1
- the key of the first mappingv1
- the value of the first mappingk2
- the key of the second mappingv2
- the value of the second mappingk3
- the key of the third mappingv3
- the value of the third mappingk4
- the key of the fourth mappingv4
- the value of the fourth mapping@Nonnull HashShortLongMap newUpdatableMapOf(short k1, long v1, short k2, long v2, short k3, long v3, short k4, long v4, short k5, long v5)
ShortLongMapFactory
newUpdatableMapOf
in interface ShortLongMapFactory<HashShortLongMapFactory>
k1
- the key of the first mappingv1
- the value of the first mappingk2
- the key of the second mappingv2
- the value of the second mappingk3
- the key of the third mappingv3
- the value of the third mappingk4
- the key of the fourth mappingv4
- the value of the fourth mappingk5
- the key of the fifth mappingv5
- the value of the fifth mapping@Nonnull HashShortLongMap newImmutableMap(@Nonnull Map<Short,Long> map1, @Nonnull Map<Short,Long> map2, int expectedSize)
ShortLongMapFactory
map2
have priority over mappings from the map1
with
the same keys.newImmutableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
map1
- the first map to mergemap2
- the second map to mergeexpectedSize
- the expected size of the returned map@Nonnull HashShortLongMap newImmutableMap(@Nonnull Map<Short,Long> map1, @Nonnull Map<Short,Long> map2, @Nonnull Map<Short,Long> map3, int expectedSize)
ShortLongMapFactory
newImmutableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
map1
- the first map to mergemap2
- the second map to mergemap3
- the third map to mergeexpectedSize
- the expected size of the returned map@Nonnull HashShortLongMap newImmutableMap(@Nonnull Map<Short,Long> map1, @Nonnull Map<Short,Long> map2, @Nonnull Map<Short,Long> map3, @Nonnull Map<Short,Long> map4, int expectedSize)
ShortLongMapFactory
newImmutableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
map1
- the first map to mergemap2
- the second map to mergemap3
- the third map to mergemap4
- the fourth map to mergeexpectedSize
- the expected size of the returned map@Nonnull HashShortLongMap newImmutableMap(@Nonnull Map<Short,Long> map1, @Nonnull Map<Short,Long> map2, @Nonnull Map<Short,Long> map3, @Nonnull Map<Short,Long> map4, @Nonnull Map<Short,Long> map5, int expectedSize)
ShortLongMapFactory
newImmutableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
map1
- the first map to mergemap2
- the second map to mergemap3
- the third map to mergemap4
- the fourth map to mergemap5
- the fifth map to mergeexpectedSize
- the expected size of the returned map@Nonnull HashShortLongMap newImmutableMap(@Nonnull Consumer<ShortLongConsumer> entriesSupplier, int expectedSize)
ShortLongMapFactory
Example: TODO
newImmutableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
entriesSupplier
- the function which supply mappings for the returned map via
the callback passed inexpectedSize
- the expected size of the returned map@Nonnull HashShortLongMap newImmutableMap(@Nonnull short[] keys, @Nonnull long[] values, int expectedSize)
ShortLongMapFactory
keys
and values
arrays at the same index. If keys
array have
duplicate elements, value corresponding the key with the highest index is left
in the returned map.newImmutableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
keys
- the keys of the returned mapvalues
- the values of the returned map, each value is associated with the element
of the keys
array at the same indexexpectedSize
- the expected size of the returned map@Nonnull HashShortLongMap newImmutableMap(@Nonnull Short[] keys, @Nonnull Long[] values, int expectedSize)
ShortLongMapFactory
keys
and values
arrays at the same index. If keys
array have
duplicate elements, value corresponding the key with the highest index is left
in the returned map.newImmutableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
keys
- the keys of the returned mapvalues
- the values of the returned map, each value is associated with the element
of the keys
array at the same indexexpectedSize
- the expected size of the returned map@Nonnull HashShortLongMap newImmutableMap(@Nonnull Iterable<Short> keys, @Nonnull Iterable<Long> values, int expectedSize)
ShortLongMapFactory
keys
and values
iterables at the same iteration position. If keys
have duplicate elements, value corresponding the key appeared last in the iteration is left
in the returned map.newImmutableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
keys
- the keys of the returned mapvalues
- the values of the returned map, each value is associated with the element
of the keys
iterable at the same iteration positionexpectedSize
- the expected size of the returned map@Nonnull HashShortLongMap newImmutableMap(@Nonnull Map<Short,Long> map)
ShortLongMapFactory
map
.newImmutableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
map
- the map whose mappings are to be placed in the returned mapmap
@Nonnull HashShortLongMap newImmutableMap(@Nonnull Map<Short,Long> map1, @Nonnull Map<Short,Long> map2)
ShortLongMapFactory
map2
have priority over mappings from the map1
with
the same keys.newImmutableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
map1
- the first map to mergemap2
- the second map to merge@Nonnull HashShortLongMap newImmutableMap(@Nonnull Map<Short,Long> map1, @Nonnull Map<Short,Long> map2, @Nonnull Map<Short,Long> map3)
ShortLongMapFactory
newImmutableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
map1
- the first map to mergemap2
- the second map to mergemap3
- the third map to merge@Nonnull HashShortLongMap newImmutableMap(@Nonnull Map<Short,Long> map1, @Nonnull Map<Short,Long> map2, @Nonnull Map<Short,Long> map3, @Nonnull Map<Short,Long> map4)
ShortLongMapFactory
newImmutableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
map1
- the first map to mergemap2
- the second map to mergemap3
- the third map to mergemap4
- the fourth map to merge@Nonnull HashShortLongMap newImmutableMap(@Nonnull Map<Short,Long> map1, @Nonnull Map<Short,Long> map2, @Nonnull Map<Short,Long> map3, @Nonnull Map<Short,Long> map4, @Nonnull Map<Short,Long> map5)
ShortLongMapFactory
newImmutableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
map1
- the first map to mergemap2
- the second map to mergemap3
- the third map to mergemap4
- the fourth map to mergemap5
- the fifth map to merge@Nonnull HashShortLongMap newImmutableMap(@Nonnull Consumer<ShortLongConsumer> entriesSupplier)
ShortLongMapFactory
Example: TODO
newImmutableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
entriesSupplier
- the function which supply mappings for the returned map via
the callback passed in@Nonnull HashShortLongMap newImmutableMap(@Nonnull short[] keys, @Nonnull long[] values)
ShortLongMapFactory
keys
and values
arrays at the same index. If keys
array have
duplicate elements, value corresponding the key with the highest index is left
in the returned map.newImmutableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
keys
- the keys of the returned mapvalues
- the values of the returned map, each value is associated with the element
of the keys
array at the same index@Nonnull HashShortLongMap newImmutableMap(@Nonnull Short[] keys, @Nonnull Long[] values)
ShortLongMapFactory
keys
and values
arrays at the same index. If keys
array have
duplicate elements, value corresponding the key with the highest index is left
in the returned map.newImmutableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
keys
- the keys of the returned mapvalues
- the values of the returned map, each value is associated with the element
of the keys
array at the same index@Nonnull HashShortLongMap newImmutableMap(@Nonnull Iterable<Short> keys, @Nonnull Iterable<Long> values)
ShortLongMapFactory
keys
and values
iterables at the same iteration position. If keys
have duplicate elements, value corresponding the key appeared last in the iteration is left
in the returned map.newImmutableMap
in interface ShortLongMapFactory<HashShortLongMapFactory>
keys
- the keys of the returned mapvalues
- the values of the returned map, each value is associated with the element
of the keys
iterable at the same iteration position@Nonnull HashShortLongMap newImmutableMapOf(short k1, long v1)
ShortLongMapFactory
newImmutableMapOf
in interface ShortLongMapFactory<HashShortLongMapFactory>
k1
- the key of the sole mappingv1
- the value of the sole mapping@Nonnull HashShortLongMap newImmutableMapOf(short k1, long v1, short k2, long v2)
ShortLongMapFactory
newImmutableMapOf
in interface ShortLongMapFactory<HashShortLongMapFactory>
k1
- the key of the first mappingv1
- the value of the first mappingk2
- the key of the second mappingv2
- the value of the second mapping@Nonnull HashShortLongMap newImmutableMapOf(short k1, long v1, short k2, long v2, short k3, long v3)
ShortLongMapFactory
newImmutableMapOf
in interface ShortLongMapFactory<HashShortLongMapFactory>
k1
- the key of the first mappingv1
- the value of the first mappingk2
- the key of the second mappingv2
- the value of the second mappingk3
- the key of the third mappingv3
- the value of the third mapping@Nonnull HashShortLongMap newImmutableMapOf(short k1, long v1, short k2, long v2, short k3, long v3, short k4, long v4)
ShortLongMapFactory
newImmutableMapOf
in interface ShortLongMapFactory<HashShortLongMapFactory>
k1
- the key of the first mappingv1
- the value of the first mappingk2
- the key of the second mappingv2
- the value of the second mappingk3
- the key of the third mappingv3
- the value of the third mappingk4
- the key of the fourth mappingv4
- the value of the fourth mapping@Nonnull HashShortLongMap newImmutableMapOf(short k1, long v1, short k2, long v2, short k3, long v3, short k4, long v4, short k5, long v5)
ShortLongMapFactory
newImmutableMapOf
in interface ShortLongMapFactory<HashShortLongMapFactory>
k1
- the key of the first mappingv1
- the value of the first mappingk2
- the key of the second mappingv2
- the value of the second mappingk3
- the key of the third mappingv3
- the value of the third mappingk4
- the key of the fourth mappingv4
- the value of the fourth mappingk5
- the key of the fifth mappingv5
- the value of the fifth mapping