jvmMain.com.strumenta.kotlinmultiplatform.UUID.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of antlr-kotlin-runtime-jvm Show documentation
Show all versions of antlr-kotlin-runtime-jvm Show documentation
Kotlin multiplatform port of ANTLR
package com.strumenta.kotlinmultiplatform
actual class UUID {
private val _wrapped: java.util.UUID
actual constructor(most: Long, least: Long) {
_wrapped = java.util.UUID(most, least)
}
constructor(wrapped: java.util.UUID) {
this._wrapped = wrapped
}
actual companion object {
actual fun fromString(encoded: String): UUID {
return UUID(java.util.UUID.fromString(encoded))
}
}
override fun equals(other: Any?): Boolean {
return other is UUID && this._wrapped == other._wrapped
}
override fun hashCode(): Int {
return _wrapped.hashCode()
}
override fun toString(): String {
return _wrapped.toString()
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy