public int compareTo(Object obj){
  int diff=-1;
  if (obj instanceof ParserNotice) {
    ParserNotice p2=(ParserNotice)obj;
    diff=level - p2.getLevel();
    if (diff == 0) {
      diff=line - p2.getLine();
      if (diff == 0) {
        diff=message.compareTo(p2.getMessage());
      }
    }
  }
  return diff;
}

public int compareTo ( Object obj ) { int diff = - 1 ; if ( obj instanceof ParserNotice ) { ParserNotice p2 = ( ParserNotice ) obj ; diff = level - p2 . getLevel ( ) ; if ( diff == 0 ) { diff = line - p2 . getLine ( ) ; if ( diff == 0 ) { diff = message . compareTo ( p2 . getMessage ( ) ) ; } } } return diff ; }
compares this parser notice to another .
