com.itangcent.common.utils.KV.kt Maven / Gradle / Ivy
package com.itangcent.common.utils
object KV {
fun of(key: K, value: V): LinkedHashMap = linkedMapOf(key to value)
@Deprecated(
"use 'of' instead",
ReplaceWith("of(key, value)", "com.itangcent.common.utils.KV.Companion.of")
)
fun by(key: K, value: V) = of(key, value)
fun create() = linkedMapOf()
fun any() = linkedMapOf()
}