< prev index next >

src/java.base/share/classes/java/util/ArraysParallelSortHelpers.java

Print this page

        

*** 85,103 **** --- 85,105 ---- /** * A placeholder task for Sorters, used for the lowest * quartile task, that does not need to maintain array state. */ static final class EmptyCompleter extends CountedCompleter<Void> { + @java.io.Serial static final long serialVersionUID = 2446542900576103244L; EmptyCompleter(CountedCompleter<?> p) { super(p); } public final void compute() { } } /** * A trigger for secondary merge of two merges */ static final class Relay extends CountedCompleter<Void> { + @java.io.Serial static final long serialVersionUID = 2446542900576103244L; final CountedCompleter<?> task; Relay(CountedCompleter<?> task) { super(null, 1); this.task = task;
*** 109,118 **** --- 111,121 ---- } /** Object + Comparator support class */ static final class FJObject { static final class Sorter<T> extends CountedCompleter<Void> { + @java.io.Serial static final long serialVersionUID = 2446542900576103244L; final T[] a, w; final int base, size, wbase, gran; Comparator<? super T> comparator; Sorter(CountedCompleter<?> par, T[] a, T[] w, int base, int size,
*** 146,155 **** --- 149,159 ---- s.tryComplete(); } } static final class Merger<T> extends CountedCompleter<Void> { + @java.io.Serial static final long serialVersionUID = 2446542900576103244L; final T[] a, w; // main and workspace arrays final int lbase, lsize, rbase, rsize, wbase, gran; Comparator<? super T> comparator; Merger(CountedCompleter<?> par, T[] a, T[] w,
*** 231,240 **** --- 235,245 ---- } // FJObject /** byte support class */ static final class FJByte { static final class Sorter extends CountedCompleter<Void> { + @java.io.Serial static final long serialVersionUID = 2446542900576103244L; final byte[] a, w; final int base, size, wbase, gran; Sorter(CountedCompleter<?> par, byte[] a, byte[] w, int base, int size, int wbase, int gran) {
*** 264,273 **** --- 269,279 ---- s.tryComplete(); } } static final class Merger extends CountedCompleter<Void> { + @java.io.Serial static final long serialVersionUID = 2446542900576103244L; final byte[] a, w; // main and workspace arrays final int lbase, lsize, rbase, rsize, wbase, gran; Merger(CountedCompleter<?> par, byte[] a, byte[] w, int lbase, int lsize, int rbase,
*** 342,351 **** --- 348,358 ---- } // FJByte /** char support class */ static final class FJChar { static final class Sorter extends CountedCompleter<Void> { + @java.io.Serial static final long serialVersionUID = 2446542900576103244L; final char[] a, w; final int base, size, wbase, gran; Sorter(CountedCompleter<?> par, char[] a, char[] w, int base, int size, int wbase, int gran) {
*** 375,384 **** --- 382,392 ---- s.tryComplete(); } } static final class Merger extends CountedCompleter<Void> { + @java.io.Serial static final long serialVersionUID = 2446542900576103244L; final char[] a, w; // main and workspace arrays final int lbase, lsize, rbase, rsize, wbase, gran; Merger(CountedCompleter<?> par, char[] a, char[] w, int lbase, int lsize, int rbase,
*** 453,462 **** --- 461,471 ---- } // FJChar /** short support class */ static final class FJShort { static final class Sorter extends CountedCompleter<Void> { + @java.io.Serial static final long serialVersionUID = 2446542900576103244L; final short[] a, w; final int base, size, wbase, gran; Sorter(CountedCompleter<?> par, short[] a, short[] w, int base, int size, int wbase, int gran) {
*** 486,495 **** --- 495,505 ---- s.tryComplete(); } } static final class Merger extends CountedCompleter<Void> { + @java.io.Serial static final long serialVersionUID = 2446542900576103244L; final short[] a, w; // main and workspace arrays final int lbase, lsize, rbase, rsize, wbase, gran; Merger(CountedCompleter<?> par, short[] a, short[] w, int lbase, int lsize, int rbase,
*** 564,573 **** --- 574,584 ---- } // FJShort /** int support class */ static final class FJInt { static final class Sorter extends CountedCompleter<Void> { + @java.io.Serial static final long serialVersionUID = 2446542900576103244L; final int[] a, w; final int base, size, wbase, gran; Sorter(CountedCompleter<?> par, int[] a, int[] w, int base, int size, int wbase, int gran) {
*** 597,606 **** --- 608,618 ---- s.tryComplete(); } } static final class Merger extends CountedCompleter<Void> { + @java.io.Serial static final long serialVersionUID = 2446542900576103244L; final int[] a, w; // main and workspace arrays final int lbase, lsize, rbase, rsize, wbase, gran; Merger(CountedCompleter<?> par, int[] a, int[] w, int lbase, int lsize, int rbase,
*** 675,684 **** --- 687,697 ---- } // FJInt /** long support class */ static final class FJLong { static final class Sorter extends CountedCompleter<Void> { + @java.io.Serial static final long serialVersionUID = 2446542900576103244L; final long[] a, w; final int base, size, wbase, gran; Sorter(CountedCompleter<?> par, long[] a, long[] w, int base, int size, int wbase, int gran) {
*** 708,717 **** --- 721,731 ---- s.tryComplete(); } } static final class Merger extends CountedCompleter<Void> { + @java.io.Serial static final long serialVersionUID = 2446542900576103244L; final long[] a, w; // main and workspace arrays final int lbase, lsize, rbase, rsize, wbase, gran; Merger(CountedCompleter<?> par, long[] a, long[] w, int lbase, int lsize, int rbase,
*** 786,795 **** --- 800,810 ---- } // FJLong /** float support class */ static final class FJFloat { static final class Sorter extends CountedCompleter<Void> { + @java.io.Serial static final long serialVersionUID = 2446542900576103244L; final float[] a, w; final int base, size, wbase, gran; Sorter(CountedCompleter<?> par, float[] a, float[] w, int base, int size, int wbase, int gran) {
*** 819,828 **** --- 834,844 ---- s.tryComplete(); } } static final class Merger extends CountedCompleter<Void> { + @java.io.Serial static final long serialVersionUID = 2446542900576103244L; final float[] a, w; // main and workspace arrays final int lbase, lsize, rbase, rsize, wbase, gran; Merger(CountedCompleter<?> par, float[] a, float[] w, int lbase, int lsize, int rbase,
*** 897,906 **** --- 913,923 ---- } // FJFloat /** double support class */ static final class FJDouble { static final class Sorter extends CountedCompleter<Void> { + @java.io.Serial static final long serialVersionUID = 2446542900576103244L; final double[] a, w; final int base, size, wbase, gran; Sorter(CountedCompleter<?> par, double[] a, double[] w, int base, int size, int wbase, int gran) {
*** 930,939 **** --- 947,957 ---- s.tryComplete(); } } static final class Merger extends CountedCompleter<Void> { + @java.io.Serial static final long serialVersionUID = 2446542900576103244L; final double[] a, w; // main and workspace arrays final int lbase, lsize, rbase, rsize, wbase, gran; Merger(CountedCompleter<?> par, double[] a, double[] w, int lbase, int lsize, int rbase,
< prev index next >