aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils/IdentityCharacteristics.kt
blob: 5b1399f73a9e1c71256d0863b14388242f7c6a35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
package at.hannibal2.skyhanni.utils

class IdentityCharacteristics<T>(val value: T) {
    override fun equals(other: Any?): Boolean {
        if (other !is IdentityCharacteristics<*>) return false
        return this.value === other.value
    }

    override fun hashCode(): Int {
        return System.identityHashCode(value)
    }
}