public class FastSortChar
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
NUM_CHARS
Number of different char values.
|
| Constructor and Description |
|---|
FastSortChar() |
| Modifier and Type | Method and Description |
|---|---|
static void |
sort(byte[] bytes)
Sort the given byte array in natural order.
|
static void |
sort(char[] chars,
CharOrdering order)
Sort the given char array in user-defined order.
|
static void |
sort(char[] chars,
int startIndex,
int length)
Sort a part of the given char array in natural order.
|
static void |
sort(char[] chars,
int startIndex,
int length,
CharOrdering order)
Sort a part of the given char array in user-defined order.
|
static void |
sort(MutableCharIndexable chars)
Sort the given mutable char indexable in natural order.
|
static void |
sort(MutableCharIndexable chars,
CharOrdering order)
Sort the given mutable char indexable by the defined order.
|
public static final int NUM_CHARS
public static void sort(@NotNull byte[] bytes)
Arrays.sort(byte[]).bytes - byte arraypublic static void sort(@NotNull char[] chars, @NotNull CharOrdering order)
Arrays.sort(char[]).chars - char arrayorder - sort orderpublic static void sort(@NotNull char[] chars, int startIndex, int length)
Arrays.sort(char[],int,int).chars - char arraystartIndex - start index into the char array where the part to be sorted beginslength - length of the part to be sortedpublic static void sort(@NotNull char[] chars, int startIndex, int length, @NotNull CharOrdering order)
Arrays.sort(char[],int,int).chars - char arraystartIndex - start index into the char array where the part to be sorted beginslength - length of the part to be sortedorder - sort orderpublic static void sort(@NotNull MutableCharIndexable chars)
chars - char indexablepublic static void sort(@NotNull MutableCharIndexable chars, @NotNull CharOrdering order)
chars - char indexableorder - sort order