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