summaryrefslogtreecommitdiff
path: root/src/main/kotlin/util/IdentityCharacteristics.kt
blob: d3f529419da2e4cabe222a297a55028e7199ede7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package moe.nea.ultranotifier.util

class IdentityCharacteristics<T>(val value: T) {
	override fun hashCode(): Int {
		return System.identityHashCode(value)
	}

	override fun equals(other: Any?): Boolean {
		return value === other
	}

	override fun toString(): String {
		return "IdentityCharacteristics($value)"
	}
}