public abstract class ComparableUtils extends Object
| Constructor and Description |
|---|
ComparableUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Comparable<T>> |
compare(T a,
T b)
Compare a and b.
|
public static <T extends Comparable<T>> int compare(T a, T b)
T - the type of the a and ba - the comparable object ab - the comparable object ba < b 1: a > bCopyright © 2021–2022 EasyJ????. All rights reserved.