public final class Basic extends Object
Modifier and Type | Method and Description |
---|---|
static <T extends Comparable<T>> |
compareNull(T c1,
T c2)
Deprecated.
|
@Deprecated public static <T extends Comparable<T>> int compareNull(T c1, T c2)
Comparable.compareTo(Object)
and returns the output, but only if
both values are not null. If at least one of the value is null, Comparable.compareTo(Object)
is
not called. null value is always less than any non-null value.T
- the typec1
- first comparable, may be null.c2
- second comparable, may be null.Comparable.compareTo(Object)
.Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.