mirror of
https://github.com/RayzsYT/ProAntiTab.git
synced 2026-11-26 18:39:43 -05:00
30 lines
632 B
Java
30 lines
632 B
Java
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;
|
|
}
|
|
}
|