コード例 #1
0
ファイル: MockMultiUserChat.java プロジェクト: bickelj/jicofo
 @Override
 public int getMembersCount() {
   return members.size();
 }
コード例 #2
0
ファイル: DiscoveryUtil.java プロジェクト: iotum/jicofo
 /**
  * Returns <tt>true</tt> if <tt>list1</tt> and <tt>list2</tt> contain the same elements where
  * items order is not relevant.
  *
  * @param list1 the first list of <tt>String</tt> to be compared against the second list.
  * @param list2 the second list of <tt>String</tt> to be compared against the first list.
  */
 public static boolean areTheSame(List<String> list1, List<String> list2) {
   return list1.size() == list2.size() && list2.containsAll(list1);
 }