Set<Variant> as = new TreeSet<Variant>(); as.addAll(a); Set<Variant> bs = new TreeSet<Variant>(); bs.addAll(b); return as.equals(bs);
if (a.size() != b.size()) return false; for (Variant v: a) if (!b.contains(v)) return false; return true;
   public static boolean setCompareLists(List<Variant> a, List<Variant> b)   {      Set<Variant> as = new TreeSet<Variant>();      as.addAll(a);      Set<Variant> bs = new TreeSet<Variant>();      bs.addAll(b);      return as.equals(bs);   }