Record Class MailSettings.RecipientOptions
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.address.impl.action.mail.MailSettings.RecipientOptions
- All Implemented Interfaces:
Serializable
- Enclosing class:
MailSettings
public static record MailSettings.RecipientOptions(List<String> codes, List<String> acceptors, boolean sendToSelection, boolean mergeRecipients)
extends Record
implements Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRecipientOptions
(List<String> codes, List<String> acceptors, boolean sendToSelection, boolean mergeRecipients) Creates an instance of aRecipientOptions
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theacceptors
record component.codes()
Returns the value of thecodes
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.boolean
boolean
Returns the value of themergeRecipients
record component.boolean
Returns the value of thesendToSelection
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
EMPTY
-
-
Constructor Details
-
RecipientOptions
public RecipientOptions(List<String> codes, List<String> acceptors, boolean sendToSelection, boolean mergeRecipients) Creates an instance of aRecipientOptions
record class.- Parameters:
codes
- the value for thecodes
record componentacceptors
- the value for theacceptors
record componentsendToSelection
- the value for thesendToSelection
record componentmergeRecipients
- the value for themergeRecipients
record component
-
-
Method Details
-
isExtended
public boolean isExtended() -
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 '=='. -
codes
Returns the value of thecodes
record component.- Returns:
- the value of the
codes
record component
-
acceptors
Returns the value of theacceptors
record component.- Returns:
- the value of the
acceptors
record component
-
sendToSelection
public boolean sendToSelection()Returns the value of thesendToSelection
record component.- Returns:
- the value of the
sendToSelection
record component
-
mergeRecipients
public boolean mergeRecipients()Returns the value of themergeRecipients
record component.- Returns:
- the value of the
mergeRecipients
record component
-