Record Class Services
java.lang.Object
java.lang.Record
passport.application.desktop.system.Services
- Record Components:
signup- The service for user sign-up.login- The service for user login.eventsListing- The service for listing available events.subscribedEvents- The service for listing events subscribed.evaluationListing- The service for listing event evaluations.evaluation- The service for evaluating events.purchasing- The service for buying tickets.profileEditing- The service for editing user profiles.
public record Services(SigningUp signup, UserLogin login, AvailableEventsListing eventsListing, SubscribedEventsListing subscribedEvents, EvaluationListing evaluationListing, EventEvaluation evaluation, TicketBuying purchasing, UserEditing profileEditing)
extends Record
Provides access to various services within the PassPort application. These
services encapsulate the business logic and interactions with different
domains.
-
Constructor Summary
ConstructorsConstructorDescriptionServices(SigningUp signup, UserLogin login, AvailableEventsListing eventsListing, SubscribedEventsListing subscribedEvents, EvaluationListing evaluationListing, EventEvaluation evaluation, TicketBuying purchasing, UserEditing profileEditing) Creates an instance of aServicesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theevaluationrecord component.Returns the value of theevaluationListingrecord component.Returns the value of theeventsListingrecord component.final inthashCode()Returns a hash code value for this object.login()Returns the value of theloginrecord component.Returns the value of theprofileEditingrecord component.Returns the value of thepurchasingrecord component.signup()Returns the value of thesignuprecord component.Returns the value of thesubscribedEventsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Services
public Services(SigningUp signup, UserLogin login, AvailableEventsListing eventsListing, SubscribedEventsListing subscribedEvents, EvaluationListing evaluationListing, EventEvaluation evaluation, TicketBuying purchasing, UserEditing profileEditing) Creates an instance of aServicesrecord class.- Parameters:
signup- the value for thesignuprecord componentlogin- the value for theloginrecord componenteventsListing- the value for theeventsListingrecord componentsubscribedEvents- the value for thesubscribedEventsrecord componentevaluationListing- the value for theevaluationListingrecord componentevaluation- the value for theevaluationrecord componentpurchasing- the value for thepurchasingrecord componentprofileEditing- the value for theprofileEditingrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
signup
-
login
-
eventsListing
Returns the value of theeventsListingrecord component.- Returns:
- the value of the
eventsListingrecord component
-
subscribedEvents
Returns the value of thesubscribedEventsrecord component.- Returns:
- the value of the
subscribedEventsrecord component
-
evaluationListing
Returns the value of theevaluationListingrecord component.- Returns:
- the value of the
evaluationListingrecord component
-
evaluation
Returns the value of theevaluationrecord component.- Returns:
- the value of the
evaluationrecord component
-
purchasing
Returns the value of thepurchasingrecord component.- Returns:
- the value of the
purchasingrecord component
-
profileEditing
Returns the value of theprofileEditingrecord component.- Returns:
- the value of the
profileEditingrecord component
-