Record Class MessageRenderer.Missing
java.lang.Object
java.lang.Record
com.ultikits.ultitools.text.internal.MessageRenderer.Missing
- Enclosing class:
MessageRenderer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MessageKeyThe field for thekeyrecord component.private final LocaleThe field for thelocalerecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateMissing(MessageKey key, Locale locale) Creates an instance of aMissingrecord 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.key()Returns the value of thekeyrecord component.locale()Returns the value of thelocalerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
key
The field for thekeyrecord component. -
locale
The field for thelocalerecord component.
-
-
Constructor Details
-
Missing
Creates an instance of aMissingrecord class.- Parameters:
key- the value for thekeyrecord componentlocale- the value for thelocalerecord component
-
-
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). -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
locale
Returns the value of thelocalerecord component.- Returns:
- the value of the
localerecord component
-