Searches an ordered array.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static int | |
| public static void | |
| private static void | |
| private static void | |
| pack-priv static void | |
| public static int | Returns: index or a negative value if not foundObject[] array, int int start, int int limit, Object Object value, Comparator<T> Comparator c)Returns the index of the lowest element == the given search target, or when not found, a negative value -(insert position + 1) |
| public static void | |
| private static void |
| ArraySort | back to summary |
|---|---|
| public ArraySort() | |
| deDuplicate | back to summary |
|---|---|
| public static int deDuplicate(Object[] array, int limit, Comparator<T> comparator) | |
| insertionSort | back to summary |
|---|---|
| public static void insertionSort(Object[] array, Comparator<T> comparator, int lo0, int hi0) | |
| moveAndInsertRow | back to summary |
|---|---|
| private static void moveAndInsertRow(Object[] array, int i, int j) | |
| moveRows | back to summary |
|---|---|
| private static void moveRows(Object[] array, int fromIndex, int toIndex, int rows) | |
| quickSort | back to summary |
|---|---|
| pack-priv static void quickSort(Object[] array, Comparator<T> comparator, int l, int r) | |
| searchFirst | back to summary |
|---|---|
| public static int searchFirst(Object[] array, int start, int limit, Object value, Comparator<T> c) Returns the index of the lowest element == the given search target, or when not found, a negative value -(insert position + 1)
| |
| sort | back to summary |
|---|---|
| public static void sort(Object[] array, int limit, Comparator<T> comparator) | |
| swap | back to summary |
|---|---|
| private static void swap(Object[] array, int i1, int i2) | |