示例#1
0
 /**
  * Test equality of contact to chat room. This test recognizes that chat rooms may have equal
  * names but connected to different accounts.
  *
  * @param contact the contact
  * @param chatRoom the chat room
  * @return returns <tt>true</tt> if they are equal, or <tt>false</tt> if they are different
  */
 private boolean contactEqualsChatRoom(
     final ChatRoomSourceContact contact, final ChatRoom chatRoom) {
   return contact.getProvider() == chatRoom.getParentProvider()
       && chatRoom.getIdentifier().equals(contact.getContactAddress());
 }