public class Array
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
Array.P |
private static class |
Array.SortJob<A> |
private static class |
Array.SortJobWorker |
Modifier and Type | Field and Description |
---|---|
private static Array.SortJob<?> |
POISON_JOB_WORKER |
private static int |
SORT_JOBS |
private static java.util.concurrent.BlockingQueue<Array.SortJob<?>> |
sortJobs |
Constructor and Description |
---|
Array() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args) |
private static <A> int |
med3(Sortable<A> x,
int a,
int b,
int c) |
private static <A> void |
sort(Array.SortJob<A> job,
boolean threaded) |
static <A> void |
sort(Sortable<A> x) |
private static <A> void |
swap(Sortable<A> x,
int a,
int b,
int n,
A buffer) |
static void |
terminate() |
static <A> void |
uniq(Sortable<A> x) |
private static final int SORT_JOBS
private static final Array.SortJob<?> POISON_JOB_WORKER
private static java.util.concurrent.BlockingQueue<Array.SortJob<?>> sortJobs
public static void terminate()
public static <A> void sort(Sortable<A> x)
private static <A> void sort(Array.SortJob<A> job, boolean threaded)
private static <A> void swap(Sortable<A> x, int a, int b, int n, A buffer)
private static <A> int med3(Sortable<A> x, int a, int b, int c)
public static <A> void uniq(Sortable<A> x)
public static void main(java.lang.String[] args)