mirror of
https://github.com/RayzsYT/ProAntiTab.git
synced 2026-11-26 18:39:43 -05:00
Create
This commit is contained in:
1 parent
a93fbc699f
commit
c0420edd5e
1 file changed
+29
@@ -0,0 +1,29 @@
|
||||
package de.rayzs.pat.utils;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
public class ArrayUtils {
|
||||
|
||||
public static boolean compareStringArrays(List<String> listA, List<String> listB) {
|
||||
if(listA == null || listB == null) return false;
|
||||
|
||||
boolean found = Arrays.equals(listA.toArray(), listB.toArray());
|
||||
if(found) return true;
|
||||
|
||||
for (String s : listA) {
|
||||
found = listB.contains(s);
|
||||
if(!found) break;
|
||||
}
|
||||
|
||||
if(found) {
|
||||
|
||||
for (String s : listB) {
|
||||
found = listA.contains(s);
|
||||
if(!found) break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return found;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user