@Override public boolean equals(Object o){
  if (!(o instanceof PrivilegeSubject)) {
    return false;
  }
  PrivilegeSubject sbj=(PrivilegeSubject)o;
  if ((state == null) && (sbj.state == null)) {
    return true;
  }
  if ((state == null) && (sbj.state != null)) {
    return false;
  }
  if ((state != null) && (sbj.state == null)) {
    return false;
  }
  return state.equals(sbj.state);
}

@ Override public boolean equals ( Object o ) { if ( ! ( o instanceof PrivilegeSubject ) ) { return false ; } PrivilegeSubject sbj = ( PrivilegeSubject ) o ; if ( ( state == null ) && ( sbj . state == null ) ) { return true ; } if ( ( state == null ) && ( sbj . state != null ) ) { return false ; } if ( ( state != null ) && ( sbj . state == null ) ) { return false ; } return state . equals ( sbj . state ) ; }
indicates whether some other object is " equal to " this one .
