Package passport.infra.virtual
Class UsersInMemory
java.lang.Object
passport.infra.virtual.UsersInMemory
-
Constructor Summary
ConstructorDescriptionConstructs a new UsersInMemory with an empty list of users.UsersInMemory
(List<User> usersList) Constructs a new UsersInMemory with a list of users. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves an user by their ID.boolean
has
(EmailAddress email) Checks if an user exists by their email.list()
Returns a list of all users.Retrieves an user by their email and password.void
Registers a new user.void
Updates an existing user.
-
Constructor Details
-
UsersInMemory
public UsersInMemory()Constructs a new UsersInMemory with an empty list of users. -
UsersInMemory
-
-
Method Details