public class AddressBook extends Object
Constructor and Description |
---|
AddressBook() |
Modifier and Type | Method and Description |
---|---|
void |
addCategory(Contact contact,
Category category) |
void |
changeContact(Contact contact,
Contact.Field field,
String value) |
Category |
createCategory(Category parent,
String name) |
Contact |
createContact() |
Contact |
createContact(Category category) |
List |
getContacts() |
List |
getContacts(Category category) |
EventHandler |
getEventHandler() |
Category |
getRootCategory() |
void |
removeContact(Contact contact) |
void |
reset() |
public EventHandler getEventHandler()
public List getContacts()
public Contact createContact()
public void removeContact(Contact contact)
public void changeContact(Contact contact, Contact.Field field, String value)
public void reset()
public Category getRootCategory()
public Category createCategory(Category parent, String name) throws NameAlreadyInUseException
NameAlreadyInUseException
Copyright © 2004–2016. All rights reserved.