FloatLongMapKt
public final class FloatLongMapKt
Summary
Public methods |
|
|---|---|
static final @NonNull FloatLongMap |
buildFloatLongMap(Builds a new |
static final @NonNull FloatLongMap |
buildFloatLongMap(Builds a new |
static final @NonNull FloatLongMap |
Returns an empty, read-only |
static final @NonNull FloatLongMap |
Returns a new |
static final @NonNull FloatLongMap |
floatLongMapOf(float key1, long value1)Returns a new |
static final @NonNull FloatLongMap |
floatLongMapOf(float key1, long value1, float key2, long value2)Returns a new |
static final @NonNull FloatLongMap |
floatLongMapOf(Returns a new |
static final @NonNull FloatLongMap |
floatLongMapOf(Returns a new |
static final @NonNull FloatLongMap |
floatLongMapOf(Returns a new |
static final @NonNull MutableFloatLongMap |
Returns a new |
static final @NonNull MutableFloatLongMap |
mutableFloatLongMapOf(float key1, long value1)Returns a new |
static final @NonNull MutableFloatLongMap |
mutableFloatLongMapOf(float key1, long value1, float key2, long value2)Returns a new |
static final @NonNull MutableFloatLongMap |
mutableFloatLongMapOf(Returns a new |
static final @NonNull MutableFloatLongMap |
mutableFloatLongMapOf(Returns a new |
static final @NonNull MutableFloatLongMap |
mutableFloatLongMapOf(Returns a new |
Public methods
buildFloatLongMap
public static final @NonNull FloatLongMap buildFloatLongMap(
@NonNull Function1<@NonNull MutableFloatLongMap, Unit> builderAction
)
Builds a new FloatLongMap by populating a MutableFloatLongMap 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 MutableFloatLongMap, Unit> builderAction |
Lambda in which the |
buildFloatLongMap
public static final @NonNull FloatLongMap buildFloatLongMap(
int initialCapacity,
@NonNull Function1<@NonNull MutableFloatLongMap, Unit> builderAction
)
Builds a new FloatLongMap by populating a MutableFloatLongMap 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 MutableFloatLongMap, Unit> builderAction |
Lambda in which the |
emptyFloatLongMap
public static final @NonNull FloatLongMap emptyFloatLongMap()
Returns an empty, read-only FloatLongMap.
floatLongMapOf
public static final @NonNull FloatLongMap floatLongMapOf()
Returns a new MutableFloatLongMap.
floatLongMapOf
public static final @NonNull FloatLongMap floatLongMapOf(float key1, long value1)
Returns a new FloatLongMap with key1 associated with value1.
floatLongMapOf
public static final @NonNull FloatLongMap floatLongMapOf(float key1, long value1, float key2, long value2)
Returns a new FloatLongMap with key1, and key2 associated with value1, and value2, respectively.
floatLongMapOf
public static final @NonNull FloatLongMap floatLongMapOf(
float key1,
long value1,
float key2,
long value2,
float key3,
long value3
)
Returns a new FloatLongMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.
floatLongMapOf
public static final @NonNull FloatLongMap floatLongMapOf(
float key1,
long value1,
float key2,
long value2,
float key3,
long value3,
float key4,
long value4
)
Returns a new FloatLongMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.
floatLongMapOf
public static final @NonNull FloatLongMap floatLongMapOf(
float key1,
long value1,
float key2,
long value2,
float key3,
long value3,
float key4,
long value4,
float key5,
long value5
)
Returns a new FloatLongMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.
mutableFloatLongMapOf
public static final @NonNull MutableFloatLongMap mutableFloatLongMapOf()
Returns a new MutableFloatLongMap.
mutableFloatLongMapOf
public static final @NonNull MutableFloatLongMap mutableFloatLongMapOf(float key1, long value1)
Returns a new MutableFloatLongMap with key1 associated with value1.
mutableFloatLongMapOf
public static final @NonNull MutableFloatLongMap mutableFloatLongMapOf(float key1, long value1, float key2, long value2)
Returns a new MutableFloatLongMap with key1, and key2 associated with value1, and value2, respectively.
mutableFloatLongMapOf
public static final @NonNull MutableFloatLongMap mutableFloatLongMapOf(
float key1,
long value1,
float key2,
long value2,
float key3,
long value3
)
Returns a new MutableFloatLongMap with key1, key2, and key3 associated with value1, value2, and value3, respectively.
mutableFloatLongMapOf
public static final @NonNull MutableFloatLongMap mutableFloatLongMapOf(
float key1,
long value1,
float key2,
long value2,
float key3,
long value3,
float key4,
long value4
)
Returns a new MutableFloatLongMap with key1, key2, key3, and key4 associated with value1, value2, value3, and value4, respectively.
mutableFloatLongMapOf
public static final @NonNull MutableFloatLongMap mutableFloatLongMapOf(
float key1,
long value1,
float key2,
long value2,
float key3,
long value3,
float key4,
long value4,
float key5,
long value5
)
Returns a new MutableFloatLongMap with key1, key2, key3, key4, and key5 associated with value1, value2, value3, value4, and value5, respectively.