Modifier and Type | Method and Description |
---|---|
Contact |
ContactSet.getByName(String name)
Returns a new copy of the contact having the given name.
|
Modifier and Type | Method and Description |
---|---|
List<Contact> |
ContactSet.getContacts()
Returns a list containing new copies of all of the contacts
in this contact list.
|
Modifier and Type | Method and Description |
---|---|
void |
ContactSet.add(Contact c)
Add a new contact to this contact set.
|
int |
Contact.compareTo(Contact other)
Compares this contact with another contact for order.
|
void |
ContactSet.update(Contact c,
String name,
PhoneNumber number)
Update the information for an existing contact in this contact set.
|
Constructor and Description |
---|
Contact(Contact other)
Initialize this contact to have the same name and telephone number as
another contact.
|