Record Class CorrespondenceRecipientService.RecipientBean
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.correspondence.impl.service.CorrespondenceRecipientService.RecipientBean
- Enclosing class:
CorrespondenceRecipientService
-
Constructor Summary
ConstructorsConstructorDescriptionRecipientBean(String key, String model, @Nullable String userKey, @Nullable String user, @Nullable String addressKey, @Nullable String address, List<CorrespondenceRecipientService.SourceBean> sources) Creates an instance of aRecipientBeanrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable Stringaddress()Returns the value of theaddressrecord component.@Nullable StringReturns the value of theaddressKeyrecord 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, @Nullable String addressKey, @Nullable String address, List<CorrespondenceRecipientService.SourceBean> 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 componentaddressKey- the value for theaddressKeyrecord componentaddress- the value for theaddressrecord componentsources- the value for thesourcesrecord component
-
-
Method Details
-
withSingleSource
public CorrespondenceRecipientService.RecipientBean withSingleSource(CorrespondenceRecipientService.SourceBean 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
-
addressKey
Returns the value of theaddressKeyrecord component.- Returns:
- the value of the
addressKeyrecord component
-
address
Returns the value of theaddressrecord component.- Returns:
- the value of the
addressrecord component
-
sources
Returns the value of thesourcesrecord component.- Returns:
- the value of the
sourcesrecord component
-