Package main.domain.contexts.events
Class AvailableEventsListing
java.lang.Object
main.domain.contexts.events.AvailableEventsListing
-
Constructor Summary
ConstructorDescriptionAvailableEventsListing
(Events events) Constructor with the specified events repository. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the list of available events starting from the set date.beingToday
(LocalDate today) Sets the current date for the context.
-
Constructor Details
-
AvailableEventsListing
Constructor with the specified events repository.- Parameters:
events
- the repository of events used for listing
-
-
Method Details
-
beingToday
Sets the current date for the context.- Parameters:
today
- the current date- Returns:
- the updated AvailableEventsListing object
-
availables
Retrieves the list of available events starting from the set date.- Returns:
- a list of available events
- Throws:
NullPointerException
- if the current date or events repository is not set
-