Record Class CorrespondenceRecipientService.LoadedRecipients
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.correspondence.impl.service.CorrespondenceRecipientService.LoadedRecipients
- Enclosing class:
CorrespondenceRecipientService
public static record CorrespondenceRecipientService.LoadedRecipients(List<CorrespondenceRecipientService.RecipientBean> recipients, long totalCount, @Nullable CorrespondenceRecipientService.InvalidRecipientBean invalidRecipient)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionLoadedRecipients(List<CorrespondenceRecipientService.RecipientBean> recipients, long totalCount, @Nullable CorrespondenceRecipientService.InvalidRecipientBean invalidRecipient) Creates an instance of aLoadedRecipientsrecord 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 theinvalidRecipientrecord component.Returns the value of therecipientsrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalCountrecord component.
-
Constructor Details
-
LoadedRecipients
public LoadedRecipients(List<CorrespondenceRecipientService.RecipientBean> recipients, long totalCount, @Nullable CorrespondenceRecipientService.InvalidRecipientBean invalidRecipient) Creates an instance of aLoadedRecipientsrecord class.- Parameters:
recipients- the value for therecipientsrecord componenttotalCount- the value for thetotalCountrecord componentinvalidRecipient- the value for theinvalidRecipientrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
recipients
Returns the value of therecipientsrecord component.- Returns:
- the value of the
recipientsrecord component
-
totalCount
public long totalCount()Returns the value of thetotalCountrecord component.- Returns:
- the value of the
totalCountrecord component
-
invalidRecipient
Returns the value of theinvalidRecipientrecord component.- Returns:
- the value of the
invalidRecipientrecord component
-