compare


Description:

public static int compare (Comparable? first, Comparable? other)

Compare one certificate against another.

If the certificates are equal then zero is returned. If one certificate is null or not a certificate, then a non-zero value is returned.

The return value is useful in a stable sort, but has no user logical meaning.

Parameters:

first

the certificate to compare

other

the certificate to compare against

Returns:

zero if the certificates match, non-zero otherwise.