public static <V> Builder<V> withSortedSet(Comparator<? super V> comparator) { return new Builder<>(ContainerType.SORTED_SET, () -> TreeSet.empty(comparator)); }
public static <V extends Comparable<?>> Builder<V> withSortedSet() { return new Builder<>(ContainerType.SORTED_SET, TreeSet::empty); }
public static <V> Builder<V> withSet() { return new Builder<>(ContainerType.SET, HashSet::empty); }
public static <V> Builder<V> withSeq() { return new Builder<>(ContainerType.SEQ, List::empty); }
public static <V> Builder<V> withSortedSet(Comparator<? super V> comparator) { return new Builder<>(ContainerType.SORTED_SET, () -> TreeSet.empty(comparator)); }
public static <V extends Comparable<?>> Builder<V> withSortedSet() { return new Builder<>(ContainerType.SORTED_SET, TreeSet::empty); }
public static <V> Builder<V> withSet() { return new Builder<>(ContainerType.SET, HashSet::empty); }
public static <V> Builder<V> withSeq() { return new Builder<>(ContainerType.SEQ, List::empty); }