java.lang.Object
java.lang.Record
it.auties.whatsapp.model.mobile.CountryLocale
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCountryLocale(String languageValue, String languageCode, String separator) Creates an instance of aCountryLocalerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelanguageCoderecord component.Returns the value of thelanguageValuerecord component.static CountryLocalestatic Optional<CountryLocale> Returns the value of theseparatorrecord component.toString()Returns a string representation of this record class.
-
Field Details
-
languageValue
The field for thelanguageValuerecord component. -
languageCode
The field for thelanguageCoderecord component. -
separator
The field for theseparatorrecord component.
-
-
Constructor Details
-
CountryLocale
Creates an instance of aCountryLocalerecord class.- Parameters:
languageValue- the value for thelanguageValuerecord componentlanguageCode- the value for thelanguageCoderecord componentseparator- the value for theseparatorrecord component
-
-
Method Details
-
of
-
of
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
languageValue
Returns the value of thelanguageValuerecord component.- Returns:
- the value of the
languageValuerecord component
-
languageCode
Returns the value of thelanguageCoderecord component.- Returns:
- the value of the
languageCoderecord component
-
separator
Returns the value of theseparatorrecord component.- Returns:
- the value of the
separatorrecord component
-