@Override
    public int compareTo(Object obj)
    {
        if (tc.isEntryEnabled())
            Tr.entry(tc, "compareTo", obj);

        UUID other = (UUID) obj; // Allowed to throw ClassCastException

        int result = 0;

        if (equals(other))
        {
            result = 0;
        }
        else if (_unexpectedFormat)
        {
            // This UUID is in an unexpected format so we do not have
            // uuidHigh and uuidLow to compare. Instead we compare the
            // two UUID's hash codes (the sum of each byte of their
            // byte array form).
            result = Integer.valueOf(hashCode()).compareTo(Integer.valueOf(other.hashCode()));
        }
        else
        {
            result = Long.valueOf(_uuidHigh).compareTo(Long.valueOf(other._uuidHigh));

            if (result == 0)
            {
                result = Long.valueOf(_uuidLow).compareTo(Long.valueOf(other._uuidLow));
            }
        }

        if (tc.isEntryEnabled())
            Tr.exit(tc, "compareTo", Integer.valueOf(result));
        return result;
    }
@ Override public int compareTo ( Object obj ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "compareTo" , obj ) ; UUID other = ( UUID ) obj ; int result = 0 ; if ( equals ( other ) ) { result = 0 ; } else if ( _unexpectedFormat ) { result = Integer . valueOf ( hashCode ( ) ) . compareTo ( Integer . valueOf ( other . hashCode ( ) ) ) ; } else { result = Long . valueOf ( _uuidHigh ) . compareTo ( Long . valueOf ( other . _uuidHigh ) ) ; if ( result == 0 ) { result = Long . valueOf ( _uuidLow ) . compareTo ( Long . valueOf ( other . _uuidLow ) ) ; } } if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "compareTo" , Integer . valueOf ( result ) ) ; return result ; }
/* ------------------------------------------------------------------------