public static class ContactInfo.Builder extends Object
ContactInfo objects.| Constructor and Description |
|---|
ContactInfo.Builder() |
| Modifier and Type | Method and Description |
|---|---|
ContactInfo |
build()
Returns the contact information built so far.
|
ContactInfo.Builder |
withEmail(String email)
Sets a single email address as the contact's email.
|
ContactInfo.Builder |
withEmails(List<String> emails)
Sets the target emails.
|
ContactInfo.Builder |
withInstitution(String institution)
Sets the contact's institution.
|
ContactInfo.Builder |
withName(String name)
Sets the contact's full name.
|
ContactInfo.Builder |
withUrl(String url)
Sets the target contact's URL.
|
ContactInfo.Builder |
withUserId(String userId)
Sets the user id for the contact.
|
public ContactInfo.Builder withUserId(String userId)
userId - the user identifier to set, may be nullpublic ContactInfo.Builder withName(String name)
name - the user identifier to set, may be nullpublic ContactInfo.Builder withInstitution(String institution)
institution - the institution to set, may be nullpublic ContactInfo.Builder withEmail(String email)
email - an email address to set, may be nullpublic ContactInfo.Builder withEmails(List<String> emails)
emails - the list of emails to set, may be null or emptypublic ContactInfo.Builder withUrl(String url)
url - the URL to set, may be nullpublic ContactInfo build()
Copyright © 2011–2017 University of Toronto, Computational Biology Lab. All rights reserved.