blob: f6054c4e5f0bb3c69f37566f71fe1ef832f12055 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
package moe.nea.firmament.util
class IdentityCharacteristics<T>(val value: T) {
override fun equals(other: Any?): Boolean {
if (this === other) return true
if (other !is IdentityCharacteristics<*>) return false
return value === other.value
}
override fun hashCode(): Int {
return System.identityHashCode(value)
}
}
|