示例#1
0
文件: Job.java 项目: neo2buha/jenkins
 public int compare(Run record, String key) {
   try {
     int k = Integer.parseInt(key);
     return record.getNumber() - k;
   } catch (NumberFormatException nfe) {
     return String.valueOf(record.getNumber()).compareTo(key);
   }
 }
示例#2
0
文件: Job.java 项目: neo2buha/jenkins
 public String getKey(Run record) {
   return String.valueOf(record.getNumber());
 }