@Override public Vector<T> sort() { return isEmpty() ? this : toJavaStream().sorted().collect(Vector.collector()); }
@Override protected <T> Collector<T, ArrayList<T>, Vector<T>> collector() { return Vector.collector(); }
@Override public Vector<T> sort(Comparator<? super T> comparator) { Objects.requireNonNull(comparator, "comparator is null"); return isEmpty() ? this : toJavaStream().sorted(comparator).collect(Vector.collector()); }