Record Class MailActionRecipientResource.LoadRecipientsResponseBean
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.address.impl.action.mail.MailActionRecipientResource.LoadRecipientsResponseBean
- Enclosing class:
MailActionRecipientResource
-
Constructor Summary
ConstructorsConstructorDescriptionLoadRecipientsResponseBean(List<MailActionRecipientResource.RecipientBean> recipients, long totalCount, String expectedEmailCount, boolean emailAlternativeAvailable, List<String> invalidRecipientKeys) Creates an instance of aLoadRecipientsResponseBeanrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theemailAlternativeAvailablerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpectedEmailCountrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinvalidRecipientKeysrecord 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
-
LoadRecipientsResponseBean
public LoadRecipientsResponseBean(List<MailActionRecipientResource.RecipientBean> recipients, long totalCount, String expectedEmailCount, boolean emailAlternativeAvailable, List<String> invalidRecipientKeys) Creates an instance of aLoadRecipientsResponseBeanrecord class.- Parameters:
recipients- the value for therecipientsrecord componenttotalCount- the value for thetotalCountrecord componentexpectedEmailCount- the value for theexpectedEmailCountrecord componentemailAlternativeAvailable- the value for theemailAlternativeAvailablerecord componentinvalidRecipientKeys- the value for theinvalidRecipientKeysrecord 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
-
expectedEmailCount
Returns the value of theexpectedEmailCountrecord component.- Returns:
- the value of the
expectedEmailCountrecord component
-
emailAlternativeAvailable
public boolean emailAlternativeAvailable()Returns the value of theemailAlternativeAvailablerecord component.- Returns:
- the value of the
emailAlternativeAvailablerecord component
-
invalidRecipientKeys
Returns the value of theinvalidRecipientKeysrecord component.- Returns:
- the value of the
invalidRecipientKeysrecord component
-