consider two instances equal if they have the same forename and surname . perhaps somewhat limiting in the real world - you may know two john smith 's - but i 've not done this before so i want to try it out . just call him john smith2 . concode_field_sep String forename concode_elem_sep String surname concode_elem_sep List<ContactMethod> contactDetails concode_elem_sep Calendar dateAdded concode_field_sep void setForename concode_elem_sep void setSurname concode_elem_sep Calendar getDateAdded concode_elem_sep List<ContactMethod> getContactMethods concode_elem_sep void addContactMethod concode_elem_sep int compareTo concode_elem_sep String getForename concode_elem_sep void setDateAdded concode_elem_sep String getSurname
boolean function ( Object arg0 ) { if ( arg0 instanceof AddressBookEntry ) return this . compareTo ( ( AddressBookEntry ) arg0 ) == 0 ; else return false ; }