xmpp-compliance-tester

XMPP Compliance Tester, forked from github.com/iNPUTmice/ComplianceTester
git clone https://git.in0rdr.ch/xmpp-compliance-tester.git
Log | Files | Refs | Pull requests |Archive | README | LICENSE

TestUtils.java (346B)


      1 package eu.siacs.utils;
      2 
      3 import java.util.List;
      4 import java.util.Set;
      5 
      6 public class TestUtils {
      7 
      8     public static boolean hasAnyone(List<String> needles, Set<String> haystack) {
      9         for(String needle : needles) {
     10             if (haystack.contains(needle)) {
     11                 return true;
     12             }
     13         }
     14         return false;
     15     }
     16 }