/** * Adds a new Contact to the account. * <p> * This is a convenience call for {@link #addContact(URI)}. * * @param contact * Contact URI as string * @return itself */ public EditableAccount addContact(String contact) { addContact(URI.create(contact)); return this; }
/** * Adds a new Contact email to the account. * <p> * This is a convenience call for {@link #addContact(String)} hat doesn't * require from you attach "mailto" scheme before email address. * * @param email * Contact email without "mailto" scheme (e.g. test@gmail.com) * @return itself */ public EditableAccount addEmail(String email) { addContact("mailto:" + email); return this; }
/** * Adds a new Contact email to the account. * <p> * This is a convenience call for {@link #addContact(String)} hat doesn't * require from you attach "mailto" scheme before email address. * * @param email * Contact email without "mailto" scheme (e.g. test@gmail.com) * @return itself */ public EditableAccount addEmail(String email) { addContact("mailto:" + email); return this; }
/** * Modifies the account data of the account. * * @return {@link EditableAccount} where the account can be modified */ public EditableAccount modify() { return new EditableAccount(); }
/** * Modifies the account data of the account. * * @return {@link EditableAccount} where the account can be modified */ public EditableAccount modify() { return new EditableAccount(); }
/** * Adds a new Contact to the account. * <p> * This is a convenience call for {@link #addContact(URI)}. * * @param contact * Contact URI as string * @return itself */ public EditableAccount addContact(String contact) { addContact(URI.create(contact)); return this; }