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