diff options
author | nea <nea@nea.moe> | 2023-07-23 17:39:47 +0200 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-07-23 17:40:26 +0200 |
commit | b8d53d66085c827853325d399e16b85ca4758520 (patch) | |
tree | c421c09cc7dc43abe16835812ee5be9701489dbe /src/main/kotlin/com/dulkirfabric/config/Pair.kt | |
parent | 3150e50bc3d75b8809f52a5aa46923ad2ddf8db4 (diff) | |
download | DulkirMod-Fabric-b8d53d66085c827853325d399e16b85ca4758520.tar.gz DulkirMod-Fabric-b8d53d66085c827853325d399e16b85ca4758520.tar.bz2 DulkirMod-Fabric-b8d53d66085c827853325d399e16b85ca4758520.zip |
Use string map for positionspositionbranch
Diffstat (limited to 'src/main/kotlin/com/dulkirfabric/config/Pair.kt')
-rw-r--r-- | src/main/kotlin/com/dulkirfabric/config/Pair.kt | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/main/kotlin/com/dulkirfabric/config/Pair.kt b/src/main/kotlin/com/dulkirfabric/config/Pair.kt deleted file mode 100644 index cf5e914..0000000 --- a/src/main/kotlin/com/dulkirfabric/config/Pair.kt +++ /dev/null @@ -1,28 +0,0 @@ -package com.dulkirfabric.config - -class Pair<T, R>(val t: T, val r: R) { - - fun getLeft(): T { - return t - } - - fun getRight(): R { - return r - } - - override fun equals(other: Any?): Boolean { - if (this === other) { - return true - } else if (other != null && this::class == other::class) { - other as Pair<*, *> - return t == other.t && r == other.r - } - return false - } - - override fun hashCode(): Int { - var result = t?.hashCode() ?: 0 - result = 31 * result + (r?.hashCode() ?: 0) - return result - } -} |