com.icthh.xm.commons.permission.utils.CollectionUtils Maven / Gradle / Ivy
package com.icthh.xm.commons.permission.utils;
import java.util.Collection;
import java.util.HashSet;
import lombok.experimental.UtilityClass;
@UtilityClass
public class CollectionUtils {
public static boolean listsNotEqualsIgnoreOrder(Collection collection1, Collection collection2) {
return new HashSet<>(collection1).equals(new HashSet<>(collection2));
}
}