public static void replaceAll(List @this, java.util.function.UnaryOperator unaryoperator) { int s = @this.size(); for (int i = 0; i < s; i++) { @this.set(i, unaryoperator.apply(@this.get(i))); } }
public static void sort(List @this, Comparator c) { object[] a = @this.toArray(); int l = a.Length; java.util.Arrays.sort(a, 0, l, c); for (int i = 0; i < l; i++) { @this.set(i, a[i]); } }