FloatLongMapKt

Added in 1.4.0

public final class FloatLongMapKt


Summary

Public methods

static final @NonNull FloatLongMap

Builds a new FloatLongMap by populating a MutableFloatLongMap using the given builderAction.

static final @NonNull FloatLongMap
buildFloatLongMap(
    int initialCapacity,
    @ExtensionFunctionType @NonNull Function1<@NonNull MutableFloatLongMapUnit> builderAction
)

Builds a new FloatLongMap by populating a MutableFloatLongMap using the given builderAction.

static final @NonNull FloatLongMap

Returns an empty, read-only FloatLongMap.

static final @NonNull FloatLongMap

Returns a new MutableFloatLongMap.

static final @NonNull FloatLongMap
floatLongMapOf(float key1, long value1)

Returns a new FloatLongMap with key1 associated with value1.

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.

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.

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.

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.

static final @NonNull MutableFloatLongMap

Returns a new MutableFloatLongMap.

static final @NonNull MutableFloatLongMap
mutableFloatLongMapOf(float key1, long value1)

Returns a new MutableFloatLongMap with key1 associated with value1.

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.

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.

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.

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.

Public methods

buildFloatLongMap

public static final @NonNull FloatLongMap buildFloatLongMap(
    @ExtensionFunctionType @NonNull Function1<@NonNull MutableFloatLongMapUnit> 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
@ExtensionFunctionType @NonNull Function1<@NonNull MutableFloatLongMapUnit> builderAction

Lambda in which the MutableFloatLongMap can be populated.

buildFloatLongMap

public static final @NonNull FloatLongMap buildFloatLongMap(
    int initialCapacity,
    @ExtensionFunctionType @NonNull Function1<@NonNull MutableFloatLongMapUnit> 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 builderAction.

@ExtensionFunctionType @NonNull Function1<@NonNull MutableFloatLongMapUnit> builderAction

Lambda in which the MutableFloatLongMap can be populated.

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.