public int compareTo(Rule that){
  int answer=compareInt(this.importPrecedence,that.importPrecedence);
  if (answer == 0) {
    answer=Double.compare(this.priority,that.priority);
    if (answer == 0) {
      answer=compareInt(this.appearenceCount,that.appearenceCount);
    }
  }
  return answer;
}

public int compareTo ( Rule that ) { int answer = compareInt ( this . importPrecedence , that . importPrecedence ) ; if ( answer == 0 ) { answer = Double . compare ( this . priority , that . priority ) ; if ( answer == 0 ) { answer = compareInt ( this . appearenceCount , that . appearenceCount ) ; } } return answer ; }
compares two rules in xslt processing model order assuming that the modes are equal .
