public final class Basic
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T extends java.lang.Comparable<T>> |
compareNull(T c1,
T c2)
Deprecated.
|
@Deprecated public static <T extends java.lang.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.