Skip to content

Instantly share code, notes, and snippets.

@abner-math
Created February 1, 2020 16:51
Show Gist options
  • Save abner-math/2d3d6c85348b36027151fd4af896e207 to your computer and use it in GitHub Desktop.
Save abner-math/2d3d6c85348b36027151fd4af896e207 to your computer and use it in GitHub Desktop.
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