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
ConstructorDescriptionInfra
(Users users, Events events, EmailService emailService, Session session) Creates an instance of aInfra
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theemailService
record component.final boolean
Indicates whether some other object is "equal to" this one.events()
Returns the value of theevents
record component.final int
hashCode()
Returns a hash code value for this object.session()
Returns the value of thesession
record component.final String
toString()
Returns a string representation of this record class.users()
Returns the value of theusers
record component.
-
Constructor Details
-
Infra
Creates an instance of aInfra
record class.- Parameters:
users
- the value for theusers
record componentevents
- the value for theevents
record componentemailService
- the value for theemailService
record componentsession
- the value for thesession
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)
. -
users
-
events
-
emailService
Returns the value of theemailService
record component.- Returns:
- the value of the
emailService
record component
-
session
-