Esempio n. 1
0
 @SuppressWarnings("unchecked")
 @Override
 public Array<T> sorted(Comparator<? super T> comparator) {
   final Object[] arr = toArray(this);
   Arrays.sort(arr, (o1, o2) -> comparator.compare((T) o1, (T) o2));
   return wrap(arr);
 }
Esempio n. 2
0
 @Override
 public Array<T> sorted() {
   final Object[] arr = toArray(this);
   Arrays.sort(arr);
   return wrap(arr);
 }