public class Comparators extends Object
| Modifier and Type | Method and Description |
|---|---|
static Comparator<String> |
createOrderIgnoreCase(String... order)
Creates a comparator that compares strings according to the given order.
|
static <T extends Number> |
forNumbers()
Returns a comparator that compares numbers based on their double value.
|
public static <T extends Number> Comparator<T> forNumbers()
T - The element typepublic static Comparator<String> createOrderIgnoreCase(String... order)
order - The order of the stringsCopyright © 2020. All rights reserved.