コード例 #1
0
    public int compareTo(Object other) {
      int thisLoc = mStart.getLocation();
      int thatLoc = ((Entry) other).mStart.getLocation();

      if (thisLoc < thatLoc) {
        return -1;
      } else if (thisLoc > thatLoc) {
        return 1;
      } else {
        return 0;
      }
    }
コード例 #2
0
 public String toString() {
   return "start_pc=" + mStart.getLocation() + " => " + "line_number=" + mLineNumber;
 }
コード例 #3
0
 public boolean equals(Object other) {
   if (other instanceof Entry) {
     return mStart.getLocation() == ((Entry) other).mStart.getLocation();
   }
   return false;
 }