@Override public boolean equals(Object obj){
  if (this == obj)   return true;
  if (!(obj instanceof PrincipalEntry))   return false;
  PrincipalEntry that=(PrincipalEntry)obj;
  return (principalClass.equals(that.principalClass) && principalName.equals(that.principalName));
}

@ Override public boolean equals ( Object obj ) { if ( this == obj ) return true ; if ( ! ( obj instanceof PrincipalEntry ) ) return false ; PrincipalEntry that = ( PrincipalEntry ) obj ; return ( principalClass . equals ( that . principalClass ) && principalName . equals ( that . principalName ) ) ; }
test for equality between the specified object and this object . two principalentries are equal if their class and name values are equal .
