class RoleAccess {

    @Override
    public boolean equals(Object another) {
        if (this != another) {
            if (another == null || another.getClass() != RoleAccess.class) {
                return false;
            }
            RoleAccess a = (RoleAccess) another;
            if (roles == null ? a.roles != null : !roles.equals(a.roles)) {
                return false;
            }
        }
        return true;
    }

}