Package org.flowable.mail.common.impl
Record Class MailDefaultsConfigurationImpl
java.lang.Object
java.lang.Record
org.flowable.mail.common.impl.MailDefaultsConfigurationImpl
- All Implemented Interfaces:
MailDefaultsConfiguration
public record MailDefaultsConfigurationImpl(String defaultFrom, Charset defaultCharset, Collection<String> forceTo)
extends Record
implements MailDefaultsConfiguration
- Author:
- Filip Hrisafov
-
Constructor Summary
ConstructorsConstructorDescriptionMailDefaultsConfigurationImpl(String defaultFrom, Charset defaultCharset, Collection<String> forceTo) Creates an instance of aMailDefaultsConfigurationImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedefaultCharsetrecord component.Returns the value of thedefaultFromrecord component.final booleanIndicates whether some other object is "equal to" this one.forceTo()Returns the value of theforceTorecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MailDefaultsConfigurationImpl
public MailDefaultsConfigurationImpl(String defaultFrom, Charset defaultCharset, Collection<String> forceTo) Creates an instance of aMailDefaultsConfigurationImplrecord class.- Parameters:
defaultFrom- the value for thedefaultFromrecord componentdefaultCharset- the value for thedefaultCharsetrecord componentforceTo- the value for theforceTorecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
defaultFrom
Returns the value of thedefaultFromrecord component.- Specified by:
defaultFromin interfaceMailDefaultsConfiguration- Returns:
- the value of the
defaultFromrecord component
-
defaultCharset
Returns the value of thedefaultCharsetrecord component.- Specified by:
defaultCharsetin interfaceMailDefaultsConfiguration- Returns:
- the value of the
defaultCharsetrecord component
-
forceTo
Returns the value of theforceTorecord component.- Specified by:
forceToin interfaceMailDefaultsConfiguration- Returns:
- the value of the
forceTorecord component
-