@EqualsAndHashCode
public class ExternalRoleDetails implements Comparable {
- private String name;
+ private String name;
private boolean active;
private Integer priority;
- private Long appId; // used by ONAP only
+ private Long appId; // used by ONAP only
private Long appRoleId; // used by ONAP only
- private List<EPAppRoleFunction> perms;
-
- @Override
- public int compareTo(Object obj) {
- EPRole other = (EPRole)obj;
- return (this.getName() == null || other.getName() == null) ? 1 : getName().equals(other.getName()) ? 0 : 1;
- }
-
+ private List<EPAppRoleFunction> perms;
+ @Override
+ public int compareTo(Object obj) {
+ EPRole other = (EPRole) obj;
+ return (this.getName() == null || other.getName() == null) ? 1 : getName().equals(other.getName()) ? 0 : 1;
+ }
}