@ Override public int compareTo ( CollationKey target ) { for ( int i = 0 ; ; ++ i ) { int l = m_key_ [ i ] & 0xff ; int r = target . m_key_ [ i ] & 0xff ; if ( l < r ) { return - 1 ; } else if ( l > r ) { return 1 ; } else if ( l == 0 ) { return 0 ; } } }
Compare this CollationKey to another CollationKey . The collation rules of the Collator that created this key are applied .