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, List<String> invalidKeys)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionLoadedRecipients(List<CorrespondenceRecipientService.RecipientBean> recipients, long totalCount, List<String> invalidKeys) 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 theinvalidKeysrecord 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, List<String> invalidKeys) Creates an instance of aLoadedRecipientsrecord class.- Parameters:
recipients- the value for therecipientsrecord componenttotalCount- the value for thetotalCountrecord componentinvalidKeys- the value for theinvalidKeysrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
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
-
invalidKeys
Returns the value of theinvalidKeysrecord component.- Returns:
- the value of the
invalidKeysrecord component
-