1 2 3 4 5 6 7 8 9 10 11 12 13
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) } }