diff options
author | Linnea Gräf <nea@nea.moe> | 2024-09-24 13:16:55 +0200 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-09-24 13:16:55 +0200 |
commit | fb40ab45f0b4979420bae066da2244f4fdd52db8 (patch) | |
tree | 66afc558aade18c996b23da47a02f6726fb656aa /src/main/kotlin/util | |
parent | 8a5c5d45f87f38d9a7484b73c0505b95e63a21f1 (diff) | |
download | ultra-notifier-fb40ab45f0b4979420bae066da2244f4fdd52db8.tar.gz ultra-notifier-fb40ab45f0b4979420bae066da2244f4fdd52db8.tar.bz2 ultra-notifier-fb40ab45f0b4979420bae066da2244f4fdd52db8.zip |
snapshot
Diffstat (limited to 'src/main/kotlin/util')
-rw-r--r-- | src/main/kotlin/util/IdentityCharacteristics.kt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/kotlin/util/IdentityCharacteristics.kt b/src/main/kotlin/util/IdentityCharacteristics.kt new file mode 100644 index 0000000..d3f5294 --- /dev/null +++ b/src/main/kotlin/util/IdentityCharacteristics.kt @@ -0,0 +1,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)" + } +} |