getNameAddress
@NonNull
public java.lang.String getNameAddress()
returns name-addr for a Contact.
Given:
Contact(email: 'johnsnow@example.com, name: John Snow)
When:
Contact::getNameAddress()
Then:
John Snow
Given:
Contact(email: 'johnsnow@example.com, name: null)
When:
Contact::getNameAddress()
Then:
- Returns:
- An optional name that indicates the name of the recipient that could be displayed to the user of a mail application, and the email address enclosed in angle brackets
- See Also:
- Address Specification