ObjectLongMapKt

Added in 1.4.0

public final class ObjectLongMapKt


Summary

Public methods

static final @NonNull ObjectLongMap<@NonNull K>
<K extends Object> emptyObjectLongMap()

Returns an empty, read-only ObjectLongMap.

static final @NonNull MutableObjectLongMap<@NonNull K>

Returns a new empty MutableObjectLongMap.

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.

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.

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.

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.

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.

static final @NonNull ObjectLongMap<@NonNull K>
<K extends Object> objectLongMap()

Returns an empty, read-only ObjectLongMap.

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.

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.

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.

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.

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.

Public methods

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.