Package app.portaki.sdk.email
Record Class LocalizedText
java.lang.Object
java.lang.Record
app.portaki.sdk.email.LocalizedText
Libellé bilingue (corps d’e-mail, sujet, bouton). La plateforme choisit la variante selon la locale
invité.
-
Constructor Summary
ConstructorsConstructorDescriptionLocalizedText(String fr, String en) Creates an instance of aLocalizedTextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionen()Returns the value of theenrecord component.final booleanIndicates whether some other object is "equal to" this one.fr()Returns the value of thefrrecord component.final inthashCode()Returns a hash code value for this object.static LocalizedTextfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LocalizedText
Creates an instance of aLocalizedTextrecord class.- Parameters:
fr- the value for thefrrecord componenten- the value for theenrecord component
-
-
Method Details
-
of
-
forLocale
-
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). -
fr
Returns the value of thefrrecord component.- Returns:
- the value of the
frrecord component
-
en
Returns the value of theenrecord component.- Returns:
- the value of the
enrecord component
-