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, @Nullable String user, @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.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.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.
-
Constructor Details
-
RecipientBean
public RecipientBean(String key, @Nullable @Nullable String user, @Nullable @Nullable String address, List<CorrespondenceRecipientService.SourceBean> sources) Creates an instance of aRecipientBeanrecord class.- Parameters:
key- the value for thekeyrecord componentuser- the value for theuserrecord componentaddress- the value for theaddressrecord componentsources- the value for thesourcesrecord 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). -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
user
Returns the value of theuserrecord component.- Returns:
- the value of the
userrecord 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
-