Record Class TranslationTermsMessage
java.lang.Object
java.lang.Record
com.inductiveautomation.perspective.gateway.messages.json.TranslationTermsMessage
- Record Components:
locale- The IETF code for the locale (i.e. - not the Locale.toString() version, but rather the Locale.forLanguageTag() and toLanguageTag() versions.)terms- A map of each translation key to its translated value for the locale.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTranslationTermsMessage(String locale, Map<String, String> terms) Creates an instance of aTranslationTermsMessagerecord 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.locale()Returns the value of thelocalerecord component.terms()Returns the value of thetermsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
PROTOCOL
- See Also:
-
SETTINGS_PROTOCOL
- See Also:
-
-
Constructor Details
-
TranslationTermsMessage
-
-
Method Details
-
toString
-
hashCode
-
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). -
locale
-
terms
-