|
||||||||||
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 EventDBInterface
public EventInterface getEvent(int id)
EventDBInterface
Precondition: 0 <= id < this.getEventCount()
getEvent
in interface EventDBInterface
id
- 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 |