/// /// LocaleInfo.kt /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE. /// https://github.com/mrousavy/nitro /// Copyright © Marc Rousavy @ Margelo /// package com.margelo.nitro.one import androidx.annotation.Keep import com.facebook.proguard.annotations.DoNotStrip import java.util.Objects /** * Represents the JavaScript object/struct "LocaleInfo". */ @DoNotStrip @Keep data class LocaleInfo( @DoNotStrip @Keep val languageTag: String, @DoNotStrip @Keep val languageCode: String?, @DoNotStrip @Keep val languageScriptCode: String?, @DoNotStrip @Keep val regionCode: String?, @DoNotStrip @Keep val languageRegionCode: String?, @DoNotStrip @Keep val currencyCode: String?, @DoNotStrip @Keep val currencySymbol: String?, @DoNotStrip @Keep val languageCurrencyCode: String?, @DoNotStrip @Keep val languageCurrencySymbol: String?, @DoNotStrip @Keep val decimalSeparator: String?, @DoNotStrip @Keep val digitGroupingSeparator: String?, @DoNotStrip @Keep val textDirection: String, @DoNotStrip @Keep val measurementSystem: String?, @DoNotStrip @Keep val temperatureUnit: String? ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is LocaleInfo) return false return Objects.deepEquals(this.languageTag, other.languageTag) && Objects.deepEquals(this.languageCode, other.languageCode) && Objects.deepEquals(this.languageScriptCode, other.languageScriptCode) && Objects.deepEquals(this.regionCode, other.regionCode) && Objects.deepEquals(this.languageRegionCode, other.languageRegionCode) && Objects.deepEquals(this.currencyCode, other.currencyCode) && Objects.deepEquals(this.currencySymbol, other.currencySymbol) && Objects.deepEquals(this.languageCurrencyCode, other.languageCurrencyCode) && Objects.deepEquals(this.languageCurrencySymbol, other.languageCurrencySymbol) && Objects.deepEquals(this.decimalSeparator, other.decimalSeparator) && Objects.deepEquals(this.digitGroupingSeparator, other.digitGroupingSeparator) && Objects.deepEquals(this.textDirection, other.textDirection) && Objects.deepEquals(this.measurementSystem, other.measurementSystem) && Objects.deepEquals(this.temperatureUnit, other.temperatureUnit) } override fun hashCode(): Int { return arrayOf( languageTag, languageCode, languageScriptCode, regionCode, languageRegionCode, currencyCode, currencySymbol, languageCurrencyCode, languageCurrencySymbol, decimalSeparator, digitGroupingSeparator, textDirection, measurementSystem, temperatureUnit ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(languageTag: String, languageCode: String?, languageScriptCode: String?, regionCode: String?, languageRegionCode: String?, currencyCode: String?, currencySymbol: String?, languageCurrencyCode: String?, languageCurrencySymbol: String?, decimalSeparator: String?, digitGroupingSeparator: String?, textDirection: String, measurementSystem: String?, temperatureUnit: String?): LocaleInfo { return LocaleInfo(languageTag, languageCode, languageScriptCode, regionCode, languageRegionCode, currencyCode, currencySymbol, languageCurrencyCode, languageCurrencySymbol, decimalSeparator, digitGroupingSeparator, textDirection, measurementSystem, temperatureUnit) } } }