Package | Description |
---|---|
org.libj.util | |
org.libj.util.primitive |
Modifier and Type | Method and Description |
---|---|
static int |
CollectionUtil.binaryClosestSearch(ArrayIntList a,
int key,
IntComparator c)
Find the index of the sorted
ArrayIntList whose value most closely
matches the value provided. |
static int |
CollectionUtil.binaryClosestSearch(ArrayIntList a,
int fromIndex,
int toIndex,
int key,
IntComparator c)
Find the index of the sorted
ArrayIntList whose value most closely
matches the value provided. |
static int |
ArrayUtil.binaryClosestSearch(int[] a,
int fromIndex,
int toIndex,
int key,
IntComparator c)
Find the index of the sorted array whose value most closely matches the
value provided.
|
static void |
ArrayUtil.sort(int[] a,
IntComparator c)
Sorts the specified array of
int s, according to the specified
IntComparator . |
static void |
ArrayUtil.sort(int[] a,
int fromIndex,
int toIndex,
IntComparator c)
Sorts the specified array of
int s, according to the specified
IntComparator . |
static void |
CollectionUtil.sort(List<?> data,
int[] order,
IntComparator comparator)
Sorts the
List in the first argument matching the sorted order of
the array in the second argument. |
static void |
ArrayUtil.sort(Object[] data,
int[] order,
IntComparator comparator)
Sorts the array in the first argument matching the sorted order of the
array in the second argument.
|
Modifier and Type | Field and Description |
---|---|
static IntComparator |
IntComparator.NATURAL
Comparator that compares two
int values numerically. |
static IntComparator |
IntComparator.REVERSE
Comparator that compares two
int values reverse numerically. |
Modifier and Type | Method and Description |
---|---|
default IntComparator |
IntComparator.reverse()
Returns a comparator that imposes the reverse ordering of this comparator.
|
Modifier and Type | Method and Description |
---|---|
protected static void |
PrimitiveSort.sort(int[] a,
int fromIndex,
int toIndex,
IntComparator c)
Sorts the specified array of
int s, according to the provided
IntComparator . |
void |
ArrayIntList.sort(IntComparator c) |
void |
IntList.sort(IntComparator c)
Sorts the specified list according to the order induced by the specified
comparator.
|
default void |
IntList.sort(List<?> p,
IntComparator c)
Sorts the specified paired list according to the order induced by the
specified comparator applied to the values in this list.
|
void |
ArrayIntList.sort(Object[] p,
IntComparator c) |
default void |
IntList.sort(Object[] p,
IntComparator c)
Sorts this specified paired array according to the order induced by the
specified comparator applied to the values in this list.
|
protected static void |
PrimitiveSort.sortIndexed(List<?> data,
int[] idx,
IntComparator c) |
protected static void |
PrimitiveSort.sortIndexed(Object[] data,
int[] idx,
IntComparator c) |
protected static void |
PrimitiveSort.sortPaired(Object[] data,
int[] order,
int fromIndex,
int toIndex,
IntComparator comparator) |
Copyright © 2020 LibJ. All rights reserved.