@Override public int hashCode(){
  int code=0;
  if (name != null) {
    code+=name.hashCode();
  }
  if (entitlement != null) {
    code+=entitlement.hashCode();
  }
  if (eSubject != null) {
    code+=eSubject.hashCode();
  }
  if (eCondition != null) {
    code+=eCondition.hashCode();
  }
  if (eResourceAttributes != null) {
    code+=eResourceAttributes.hashCode();
  }
  return code;
}

@ Override public int hashCode ( ) { int code = 0 ; if ( name != null ) { code += name . hashCode ( ) ; } if ( entitlement != null ) { code += entitlement . hashCode ( ) ; } if ( eSubject != null ) { code += eSubject . hashCode ( ) ; } if ( eCondition != null ) { code += eCondition . hashCode ( ) ; } if ( eResourceAttributes != null ) { code += eResourceAttributes . hashCode ( ) ; } return code ; }
returns hash code of the object
