Beispiel #1
0
 @Override
 public Vector<T> sort() {
   return isEmpty() ? this : toJavaStream().sorted().collect(Vector.collector());
 }
Beispiel #2
0
 @Override
 protected <T> Collector<T, ArrayList<T>, Vector<T>> collector() {
   return Vector.collector();
 }
Beispiel #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());
 }