aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/firmament/util/IdentityCharacteristics.kt
blob: e6dad7972643f03725d283c70f54845d4d794c59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * SPDX-FileCopyrightText: 2023 Linnea Gräf <nea@nea.moe>
 *
 * SPDX-License-Identifier: GPL-3.0-or-later
 */

package moe.nea.firmament.util

class IdentityCharacteristics<T>(val value: T) {
    override fun equals(other: Any?): Boolean {
        return value === other
    }

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