public abstract class NullUtils extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
areEquals(Object o1,
Object o2)
Tests whether two objects are equals or not.
|
static int |
compareTo(Comparable o1,
Comparable o2,
boolean nullIsLowest)
Compares two objects.
|
public static boolean areEquals(Object o1, Object o2)
o1
- the first objecto2
- the second objectpublic static int compareTo(Comparable o1, Comparable o2, boolean nullIsLowest)
o1
- the first objecto2
- the second objectnullIsLowest
- true if null is considered lower than any other value, false if it is greater.Copyright © 2022. All rights reserved.