public final class ComparableUtils extends Object
| Modifier and Type | Method | Description |
|---|---|---|
static <T extends Comparable<T>> |
minimum(T... values) |
Get the minimum value from a list of comparable vales.
|
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@SafeVarargs public static <T extends Comparable<T>> T minimum(T... values)
values - The values from which the minimum should be extracted.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.