Record Class CorrespondenceRecipientService.RecipientBean
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.correspondence.impl.service.CorrespondenceRecipientService.RecipientBean
- Enclosing class:
CorrespondenceRecipientService
public static record CorrespondenceRecipientService.RecipientBean(String key, String model, @Nullable String userKey, @Nullable String user, List<CorrespondenceRecipientService.RecipientEntityBean> addresses, List<CorrespondenceRecipientService.RecipientEntityBean> sources)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRecipientBean(String key, String model, @Nullable String userKey, @Nullable String user, List<CorrespondenceRecipientService.RecipientEntityBean> addresses, List<CorrespondenceRecipientService.RecipientEntityBean> sources) Creates an instance of aRecipientBeanrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaddressesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.model()Returns the value of themodelrecord component.sources()Returns the value of thesourcesrecord component.final StringtoString()Returns a string representation of this record class.@Nullable Stringuser()Returns the value of theuserrecord component.@Nullable StringuserKey()Returns the value of theuserKeyrecord component.
-
Constructor Details
-
RecipientBean
public RecipientBean(String key, String model, @Nullable String userKey, @Nullable String user, List<CorrespondenceRecipientService.RecipientEntityBean> addresses, List<CorrespondenceRecipientService.RecipientEntityBean> sources) Creates an instance of aRecipientBeanrecord class.- Parameters:
key- the value for thekeyrecord componentmodel- the value for themodelrecord componentuserKey- the value for theuserKeyrecord componentuser- the value for theuserrecord componentaddresses- the value for theaddressesrecord componentsources- the value for thesourcesrecord component
-
-
Method Details
-
withSingleSource
public CorrespondenceRecipientService.RecipientBean withSingleSource(CorrespondenceRecipientService.RecipientEntityBean source) -
toString
-
hashCode
-
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). -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
userKey
Returns the value of theuserKeyrecord component.- Returns:
- the value of the
userKeyrecord component
-
user
Returns the value of theuserrecord component.- Returns:
- the value of the
userrecord component
-
addresses
Returns the value of theaddressesrecord component.- Returns:
- the value of the
addressesrecord component
-
sources
Returns the value of thesourcesrecord component.- Returns:
- the value of the
sourcesrecord component
-