|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuniversity.CategoryDirectory
public class CategoryDirectory
CategoryDirectory containing the people of the university.
Constructor Summary | |
---|---|
CategoryDirectory()
Creates a new instance of UniversityDirectory |
Method Summary | |
---|---|
void |
add(Person person)
Add a Person to the UniversityDirectory |
java.lang.Object |
clone()
Clone a new object |
java.lang.String |
displayCategory(int categorySelection)
|
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. |
java.lang.String |
size()
List the size for each category member of the university. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CategoryDirectory()
Method Detail |
---|
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- Throws CloneNotSupportedExceptionpublic void add(Person person)
add
in interface Directory
person
- The person to add to the UniversityDirectorypublic void remove(Person person)
remove
in interface Directory
person
- The person to remove from the UniversityDirectorypublic java.lang.String listAll()
listAll
in interface Directory
public java.lang.String size()
public Person search(java.lang.String name)
search
in interface Directory
name
- the name of the Person
public Person search(int id)
search
in interface Directory
id
- the ID number of the Person
public java.lang.String displayCategory(int categorySelection)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |