|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--PersonsDictionary
Implements a dictionary of persons
Constructor Summary | |
PersonsDictionary(java.io.File f)
Constructs the dictionary from the file. |
|
PersonsDictionary(java.lang.String s)
Constructs the dictionary from the string. |
Method Summary | |
boolean |
add(Person p)
Adds the person to the dictionary. |
boolean |
delete(java.lang.String name)
Removes the person from the dictionary. |
Person |
getByName(java.lang.String name)
Returns the person with the specified name. |
void |
toFile(java.io.File f)
Writes the contents of the dictionary into a specified file. |
java.lang.String |
toString()
Returns representation of the dictionary as a string. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public PersonsDictionary(java.lang.String s)
public PersonsDictionary(java.io.File f)
Method Detail |
public boolean add(Person p)
public boolean delete(java.lang.String name)
public Person getByName(java.lang.String name)
public java.lang.String toString()
public void toFile(java.io.File f)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |