
org.epos.eposdatamodel.UserGroup Maven / Gradle / Ivy
package org.epos.eposdatamodel;
import model.RoleType;
import java.util.List;
import java.util.Objects;
public class UserGroup {
private RoleType role;
private String groupId;
public UserGroup(RoleType role, String groupId) {
this.role = role;
this.groupId = groupId;
}
public RoleType getRole() {
return role;
}
public void setRole(RoleType role) {
this.role = role;
}
public String getGroupId() {
return groupId;
}
public void setGroupId(String groupId) {
this.groupId = groupId;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
UserGroup userGroup = (UserGroup) o;
return role == userGroup.role && Objects.equals(groupId, userGroup.groupId);
}
@Override
public int hashCode() {
return Objects.hash(role, groupId);
}
@Override
public String toString() {
return "UserGroup{" +
"role=" + role +
", groupId=" + groupId +
'}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy