Created
February 1, 2020 16:51
-
-
Save abner-math/2d3d6c85348b36027151fd4af896e207 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class System { | |
private Set<User> users; | |
public void setUsers(Set<Usuario> users) { | |
this.users = users; | |
} | |
public Set<Usuario> getUsers() { | |
return this.users; | |
} | |
public boolean addUser(String login, String password) { | |
return this.users.add(new User(login, password)); | |
} | |
public boolean removeUser(User user) { | |
return this.users.remove(user); | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment