public class ComparableUtils extends Object
| Constructor and Description |
|---|
ComparableUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> int |
safeCompare(Comparable<T> d1,
T d2)
Does a safe comparison of two
Comparable objects accounting for nulls |
public static <T> int safeCompare(Comparable<T> d1, T d2)
Comparable objects accounting for nullsd1 - First objectd2 - Second object
off sitewide
June sale — 45% off at checkout, applied automatically. Valid for 60 minutes. One per customer.
Offer ends in