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
ConstructorDescriptionServices
(SigningUp signup, UserLogin login, AvailableEventsListing eventsListing, SubscribedEventsListing subscribedEvents, EvaluationListing evaluationListing, EventEvaluation evaluation, TicketBuying purchasing, UserEditing profileEditing) Creates an instance of aServices
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of theevaluation
record component.Returns the value of theevaluationListing
record component.Returns the value of theeventsListing
record component.final int
hashCode()
Returns a hash code value for this object.login()
Returns the value of thelogin
record component.Returns the value of theprofileEditing
record component.Returns the value of thepurchasing
record component.signup()
Returns the value of thesignup
record component.Returns the value of thesubscribedEvents
record component.final String
toString()
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 aServices
record class.- Parameters:
signup
- the value for thesignup
record componentlogin
- the value for thelogin
record componenteventsListing
- the value for theeventsListing
record componentsubscribedEvents
- the value for thesubscribedEvents
record componentevaluationListing
- the value for theevaluationListing
record componentevaluation
- the value for theevaluation
record componentpurchasing
- the value for thepurchasing
record componentprofileEditing
- the value for theprofileEditing
record 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 theeventsListing
record component.- Returns:
- the value of the
eventsListing
record component
-
subscribedEvents
Returns the value of thesubscribedEvents
record component.- Returns:
- the value of the
subscribedEvents
record component
-
evaluationListing
Returns the value of theevaluationListing
record component.- Returns:
- the value of the
evaluationListing
record component
-
evaluation
Returns the value of theevaluation
record component.- Returns:
- the value of the
evaluation
record component
-
purchasing
Returns the value of thepurchasing
record component.- Returns:
- the value of the
purchasing
record component
-
profileEditing
Returns the value of theprofileEditing
record component.- Returns:
- the value of the
profileEditing
record component
-