add Context

This commit is contained in:
tursom 2022-04-05 20:26:24 +08:00
parent 00baa0c063
commit b8b63acb48

View File

@ -3,4 +3,18 @@ package cn.tursom.core.context
data class ContextKey<T>(
val envId: Int,
val id: Int,
)
) {
override fun hashCode(): Int {
return id
}
override fun equals(other: Any?): Boolean {
if (this === other) return true
if (other !is ContextKey<*>) return false
if (envId != other.envId) return false
if (id != other.id) return false
return true
}
}