domain.PlatformVersion.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kmmbridge Show documentation
Show all versions of kmmbridge Show documentation
KMP Xcode XCFramework Packaging and tooling
package co.touchlab.faktory.domain
internal class PlatformVersion private constructor(private val value: String) {
val name get() = value
internal companion object {
internal fun of(version: String): PlatformVersion? =
version.takeIf(String::isNotBlank)?.let(::PlatformVersion)
}
override fun equals(other: Any?): Boolean = value == (other as? PlatformVersion)?.value
override fun hashCode(): Int = value.hashCode()
override fun toString() = "PlatformVersion(name='$name')"
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy