public class ComparatorUtils extends Object
| Constructor and Description |
|---|
ComparatorUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Comparable<T>> |
compare(T object,
T compareWithObject)
Compares the given objects and returns the int value.
|
static <T> Integer |
nullCheck(T object,
T compareWithObject)
Checks if one of the given objects is null and returns the value for the Comparator or null if both are not null or if the given objects are not the same Object.
|
public static <T> Integer nullCheck(T object, T compareWithObject)
T - the generic typeobject - the objectcompareWithObject - the compare with objectpublic static <T extends Comparable<T>> int compare(T object, T compareWithObject)
T - the generic typeobject - the objectcompareWithObject - the compare with objectCopyright © 2007–2015 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.