ObjectLongMapKt
public final class ObjectLongMapKt
Summary
Public methods |
|
|---|---|
static final @NonNull ObjectLongMap<@NonNull K> |
<K extends Object> buildObjectLongMap(Builds a new |
static final @NonNull ObjectLongMap<@NonNull K> |
<K extends Object> buildObjectLongMap(Builds a new |
static final @NonNull ObjectLongMap<@NonNull K> |
<K extends Object> emptyObjectLongMap()Returns an empty, read-only |
static final @NonNull MutableObjectLongMap<@NonNull K> |
<K extends Object> mutableObjectLongMapOf()Returns a new empty |
static final @NonNull MutableObjectLongMap<@NonNull K> |
<K extends Object> mutableObjectLongMapOf(@NonNull K key1, long value1)Returns a new |
static final @NonNull MutableObjectLongMap<@NonNull K> |
<K extends Object> mutableObjectLongMapOf(Returns a new |
static final @NonNull MutableObjectLongMap<@NonNull K> |
<K extends Object> mutableObjectLongMapOf(Returns a new |
static final @NonNull MutableObjectLongMap<@NonNull K> |
<K extends Object> mutableObjectLongMapOf(Returns a new |
static final @NonNull MutableObjectLongMap<@NonNull K> |
<K extends Object> mutableObjectLongMapOf(Returns a new |
static final @NonNull ObjectLongMap<@NonNull K> |
<K extends Object> objectLongMap()Returns an empty, read-only |
static final @NonNull ObjectLongMap<@NonNull K> |
<K extends Object> objectLongMapOf(@NonNull K key1, long value1)Returns a new |
static final @NonNull ObjectLongMap<@NonNull K> |
<K extends Object> objectLongMapOf(Returns a new |
static final @NonNull ObjectLongMap<@NonNull K> |
<K extends Object> objectLongMapOf(Returns a new |
static final @NonNull ObjectLongMap<@NonNull K> |
<K extends Object> objectLongMapOf(Returns a new |
static final @NonNull ObjectLongMap<@NonNull K> |
<K extends Object> objectLongMapOf(Returns a new |
Public methods
buildObjectLongMap
public static final @NonNull ObjectLongMap<@NonNull K> <K extends Object> buildObjectLongMap(
@NonNull Function1<@NonNull MutableObjectLongMap<@NonNull K>, Unit> builderAction
)
Builds a new ObjectLongMap by populating a MutableObjectLongMap using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
@NonNull Function1<@NonNull MutableObjectLongMap<@NonNull K>, Unit> builderAction |
Lambda in which the |
buildObjectLongMap
public static final @NonNull ObjectLongMap<@NonNull K> <K extends Object> buildObjectLongMap(
int initialCapacity,
@NonNull Function1<@NonNull MutableObjectLongMap<@NonNull K>, Unit> builderAction
)
Builds a new ObjectLongMap by populating a MutableObjectLongMap using the given builderAction.
The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.
| Parameters | |
|---|---|
int initialCapacity |
Hint for the expected number of pairs added in the |
@NonNull Function1<@NonNull MutableObjectLongMap<@NonNull K>, Unit> builderAction |
Lambda in which the |
emptyObjectLongMap
public static final @NonNull ObjectLongMap<@NonNull K> <K extends Object> emptyObjectLongMap()
Returns an empty, read-only ObjectLongMap.
mutableObjectLongMapOf
public static final @NonNull MutableObjectLongMap<@NonNull K> <K extends Object> mutableObjectLongMapOf()
Returns a new empty MutableObjectLongMap.
mutableObjectLongMapOf
public static final @NonNull MutableObjectLongMap<@NonNull K> <K extends Object> mutableObjectLongMapOf(@NonNull K key1, long value1)
Returns a new MutableObjectLongMap with only key1 associated with value1.
mutableObjectLongMapOf
public static final @NonNull MutableObjectLongMap<@NonNull K> <K extends Object> mutableObjectLongMapOf(
@NonNull K key1,
long value1,
@NonNull K key2,
long value2
)
Returns a new MutableObjectLongMap with only key1 and key2 associated with value1 and value2, respectively.
mutableObjectLongMapOf
public static final @NonNull MutableObjectLongMap<@NonNull K> <K extends Object> mutableObjectLongMapOf(
@NonNull K key1,
long value1,
@NonNull K key2,
long value2,
@NonNull K key3,
long value3
)
Returns a new MutableObjectLongMap with only key1, key2, and key3 associated with value1, value2, and value3, respectively.
mutableObjectLongMapOf
public static final @NonNull MutableObjectLongMap<@NonNull K> <K extends Object> mutableObjectLongMapOf(
@NonNull K key1,
long value1,
@NonNull K key2,
long value2,
@NonNull K key3,
long value3,
@NonNull K key4,
long value4
)
Returns a new MutableObjectLongMap with only key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.
mutableObjectLongMapOf
public static final @NonNull MutableObjectLongMap<@NonNull K> <K extends Object> mutableObjectLongMapOf(
@NonNull K key1,
long value1,
@NonNull K key2,
long value2,
@NonNull K key3,
long value3,
@NonNull K key4,
long value4,
@NonNull K key5,
long value5
)
Returns a new MutableObjectLongMap with only key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.
objectLongMap
public static final @NonNull ObjectLongMap<@NonNull K> <K extends Object> objectLongMap()
Returns an empty, read-only ObjectLongMap.
objectLongMapOf
public static final @NonNull ObjectLongMap<@NonNull K> <K extends Object> objectLongMapOf(@NonNull K key1, long value1)
Returns a new ObjectLongMap with only key1 associated with value1.
objectLongMapOf
public static final @NonNull ObjectLongMap<@NonNull K> <K extends Object> objectLongMapOf(
@NonNull K key1,
long value1,
@NonNull K key2,
long value2
)
Returns a new ObjectLongMap with only key1 and key2 associated with value1 and value2, respectively.
objectLongMapOf
public static final @NonNull ObjectLongMap<@NonNull K> <K extends Object> objectLongMapOf(
@NonNull K key1,
long value1,
@NonNull K key2,
long value2,
@NonNull K key3,
long value3
)
Returns a new ObjectLongMap with only key1, key2, and key3 associated with value1, value2, and value3, respectively.
objectLongMapOf
public static final @NonNull ObjectLongMap<@NonNull K> <K extends Object> objectLongMapOf(
@NonNull K key1,
long value1,
@NonNull K key2,
long value2,
@NonNull K key3,
long value3,
@NonNull K key4,
long value4
)
Returns a new ObjectLongMap with only key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.
objectLongMapOf
public static final @NonNull ObjectLongMap<@NonNull K> <K extends Object> objectLongMapOf(
@NonNull K key1,
long value1,
@NonNull K key2,
long value2,
@NonNull K key3,
long value3,
@NonNull K key4,
long value4,
@NonNull K key5,
long value5
)
Returns a new ObjectLongMap with only key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.