|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Directory
Interface of required methods needed for a directory.
Method Summary | |
---|---|
void |
add(Person person)
Add a Person to the UniversityDirectory |
java.lang.String |
listAll()
List all people in the directory |
void |
remove(Person person)
Remove a Person from the UniversityDirectory |
Person |
search(int id)
Search for a Person by ID. |
Person |
search(java.lang.String name)
Search for a Person by name. |
Method Detail |
---|
void add(Person person)
person
- The person to add to the UniversityDirectoryvoid remove(Person person)
person
- The person to remove from the UniversityDirectoryjava.lang.String listAll()
Person search(java.lang.String name)
name
- the name of the Person
Person search(int id)
id
- the ID number of the Person
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |