Record Class MailActionRecipientResource.LoadRecipientsResponseBean
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.address.impl.action.mail.MailActionRecipientResource.LoadRecipientsResponseBean
- Enclosing class:
MailActionRecipientResource
public static record MailActionRecipientResource.LoadRecipientsResponseBean(List<MailActionRecipientResource.RecipientBean> recipients, long totalCount, boolean emailAlternativeAvailable)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionLoadRecipientsResponseBean
(List<MailActionRecipientResource.RecipientBean> recipients, long totalCount, boolean emailAlternativeAvailable) Creates an instance of aLoadRecipientsResponseBean
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the value of theemailAlternativeAvailable
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of therecipients
record component.final String
toString()
Returns a string representation of this record class.long
Returns the value of thetotalCount
record component.
-
Constructor Details
-
LoadRecipientsResponseBean
public LoadRecipientsResponseBean(List<MailActionRecipientResource.RecipientBean> recipients, long totalCount, boolean emailAlternativeAvailable) Creates an instance of aLoadRecipientsResponseBean
record class.- Parameters:
recipients
- the value for therecipients
record componenttotalCount
- the value for thetotalCount
record componentemailAlternativeAvailable
- the value for theemailAlternativeAvailable
record 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 therecipients
record component.- Returns:
- the value of the
recipients
record component
-
totalCount
public long totalCount()Returns the value of thetotalCount
record component.- Returns:
- the value of the
totalCount
record component
-
emailAlternativeAvailable
public boolean emailAlternativeAvailable()Returns the value of theemailAlternativeAvailable
record component.- Returns:
- the value of the
emailAlternativeAvailable
record component
-