private final void addOrder(int ch,int anOrder){
  int order=mapping.elementAt(ch);
  if (order >= RBCollationTables.CONTRACTCHARINDEX) {
    int length=1;
    if (Character.isSupplementaryCodePoint(ch)) {
      length=Character.toChars(ch,keyBuf,0);
    }
 else {
      keyBuf[0]=(char)ch;
    }
    addContractOrder(new String(keyBuf,0,length),anOrder);
  }
 else {
    mapping.setElementAt(ch,anOrder);
  }
}

private final void addOrder ( int ch , int anOrder ) { int order = mapping . elementAt ( ch ) ; if ( order >= RBCollationTables . CONTRACTCHARINDEX ) { int length = 1 ; if ( Character . isSupplementaryCodePoint ( ch ) ) { length = Character . toChars ( ch , keyBuf , 0 ) ; } else { keyBuf [ 0 ] = ( char ) ch ; } addContractOrder ( new String ( keyBuf , 0 , length ) , anOrder ) ; } else { mapping . setElementAt ( ch , anOrder ) ; } }
adds a character and its designated order into the collation table .
