@Override public int hashCode(){
  int code=0;
  if (eSubjects != null) {
    for (    EntitlementSubject eSubject : eSubjects) {
      code+=eSubject.hashCode();
    }
  }
  if (pSubjectName != null) {
    code+=pSubjectName.hashCode();
  }
  return code;
}

@ Override public int hashCode ( ) { int code = 0 ; if ( eSubjects != null ) { for ( EntitlementSubject eSubject : eSubjects ) { code += eSubject . hashCode ( ) ; } } if ( pSubjectName != null ) { code += pSubjectName . hashCode ( ) ; } return code ; }
returns hash code of the object
