All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.bselzer.ktx.intl.Locale.kt Maven / Gradle / Ivy

There is a newer version: 7.0.0
Show newest version
package com.bselzer.ktx.intl

class Locale(val languageTag: String) {
    override fun toString(): String = languageTag

    override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (other == null || this::class != other::class) return false

        other as Locale

        if (languageTag != other.languageTag) return false

        return true
    }

    override fun hashCode(): Int {
        return languageTag.hashCode()
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy