|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrsvp.model.EventDB
public class EventDB
An EventDB models a collection of events. Events are identified by an integer event ID.
| Field Summary |
|---|
| Fields inherited from interface rsvp.model.EventDBInterface |
|---|
serialVersionUID |
| Constructor Summary | |
|---|---|
EventDB()
Creates a new, empty EventDB. |
|
| Method Summary | |
|---|---|
int |
addEmptyEvent()
Creates a new, empty Event, adds it to this database, and returns its event ID. |
EventInterface |
getEvent(int id)
Returns the event with a given ID. |
int |
getEventCount()
Returns the event count for this database. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EventDB()
| Method Detail |
|---|
public int addEmptyEvent()
EventDBInterface
addEmptyEvent in interface EventDBInterfacepublic EventInterface getEvent(int id)
EventDBInterfacePrecondition: 0 <= id < this.getEventCount()
getEvent in interface EventDBInterfaceid - an integer between 0 (inclusive) and this.getEventCount() (exclusive)
public int getEventCount()
EventDBInterface
getEventCount in interface EventDBInterface
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||