Record Class ImporterMessage
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.qualification.impl.importer.ImporterMessage
- Record Components:
pk- primary key of the imported row, empty if the message concerns the whole import
public record ImporterMessage(String pk, ImporterMessage.ImporterMessageStatus status, TextMessage message, List<ImporterMessage.Detail> details)
extends Record
Untranslated result of importing a row, so it can be rendered in the language of the executing user as well as
stored in every language of the import log.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionImporterMessage(String pk, ImporterMessage.ImporterMessageStatus status, TextMessage message, List<ImporterMessage.Detail> details) Creates an instance of aImporterMessagerecord class.ImporterMessage(String pk, ImporterMessage.ImporterMessageStatus status, String messageKey, ImporterMessage.Detail... details) -
Method Summary
Modifier and TypeMethodDescriptiondetails()Returns the value of thedetailsrecord component.final booleanIndicates whether some other object is "equal to" this one.formatDetails(Function<TextMessage, String> translator) formatMessage(Function<TextMessage, String> translator) final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.pk()Returns the value of thepkrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ImporterMessage
public ImporterMessage(String pk, ImporterMessage.ImporterMessageStatus status, String messageKey, ImporterMessage.Detail... details) -
ImporterMessage
public ImporterMessage(String pk, ImporterMessage.ImporterMessageStatus status, TextMessage message, List<ImporterMessage.Detail> details) Creates an instance of aImporterMessagerecord class.- Parameters:
pk- the value for thepkrecord componentstatus- the value for thestatusrecord componentmessage- the value for themessagerecord componentdetails- the value for thedetailsrecord component
-
-
Method Details
-
formatMessage
-
formatDetails
-
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). -
pk
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
details
Returns the value of thedetailsrecord component.- Returns:
- the value of the
detailsrecord component
-