@Override public int hashCode(){
  if (location != null)   return location.hashCode();
 else   return 0;
}

@ Override public int hashCode ( ) { if ( location != null ) return location . hashCode ( ) ; else return 0 ; }
returns the hash code value for this object .
