Пример #1
0
 /** Two roles are equal if the role names are the same. */
 public boolean equals(RoleImpl RoleImpl) {
   if (this.getAuthority() == null && RoleImpl != null && RoleImpl.getAuthority() == null) {
     return true;
   }
   return (this.getAuthority() != null
       && RoleImpl != null
       && this.getAuthority().equals(RoleImpl.getAuthority()));
 }