package d0.t; import d0.z.d.m; import java.util.Collections; import java.util.Comparator; import java.util.Set; import java.util.TreeSet; /* compiled from: SetsJVM.kt */ public class m0 { public static final Set setOf(T t) { Set singleton = Collections.singleton(t); m.checkNotNullExpressionValue(singleton, "java.util.Collections.singleton(element)"); return singleton; } public static final TreeSet sortedSetOf(Comparator comparator, T... tArr) { m.checkNotNullParameter(comparator, "comparator"); m.checkNotNullParameter(tArr, "elements"); return (TreeSet) k.toCollection(tArr, new TreeSet(comparator)); } }