|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--DB.Database
Database implements a database of records
| Constructor Summary | |
Database(int initial_size)
Constructor Database initializes the database |
|
| Method Summary | |
boolean |
delete(Key k)
delete removes a record in the database based on a key |
Record |
find(Key k)
find locates a record in the database based on a key |
boolean |
insert(Record r)
insert inserts a new record into the database. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public Database(int initial_size)
initial_size - - the size of the database| Method Detail |
public Record find(Key k)
key - - the key of the desired recordpublic boolean insert(Record r)
r - - the recordpublic boolean delete(Key k)
key - - the record's key (identification)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||