Record Class Infra
java.lang.Object
java.lang.Record
passport.application.desktop.system.Infra
- Record Components:
users- The repository of users.events- The repository of events.emailService- The email service used for sending emails.session- The session management for the application.
public record Infra(Users users, Events events, EmailService emailService, Session session)
extends Record
Represents the infrastructure layer of the PassPort application.
-
Constructor Summary
ConstructorsConstructorDescriptionInfra(Users users, Events events, EmailService emailService, Session session) Creates an instance of aInfrarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theemailServicerecord component.final booleanIndicates whether some other object is "equal to" this one.events()Returns the value of theeventsrecord component.final inthashCode()Returns a hash code value for this object.session()Returns the value of thesessionrecord component.final StringtoString()Returns a string representation of this record class.users()Returns the value of theusersrecord component.
-
Constructor Details
-
Infra
Creates an instance of aInfrarecord class.- Parameters:
users- the value for theusersrecord componentevents- the value for theeventsrecord componentemailService- the value for theemailServicerecord componentsession- the value for thesessionrecord 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). -
users
-
events
-
emailService
Returns the value of theemailServicerecord component.- Returns:
- the value of the
emailServicerecord component
-
session
-