All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.epos.eposdatamodel.UserGroup Maven / Gradle / Ivy

There is a newer version: 2.5.21
Show newest version
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 - 2024 Weber Informatics LLC | Privacy Policy