Package passport.infra.virtual
Class EventsInMemory
java.lang.Object
passport.infra.virtual.EventsInMemory
-
Constructor Summary
ConstructorDescriptionConstructs a new EventsInMemory with an empty list of events.EventsInMemory
(List<Event> eventsList) Constructs a new EventsInMemory with a list of events. -
Method Summary
Modifier and TypeMethodDescriptionavailableOn
(LocalDate date) Lists all events available on a specific date.Retrieves an event by its ID.Retrieves an event by its title and date.boolean
Checks if an event exists by its title and date.boolean
Checks if an event exists by its ID.list()
Lists all events.void
Registers a new event.void
Updates an existing event.
-
Constructor Details
-
EventsInMemory
public EventsInMemory()Constructs a new EventsInMemory with an empty list of events. -
EventsInMemory
-
-
Method Details