Example #1
0
  public WarpPath invertedCopy() {
    WarpPath newWarpPath = new WarpPath();
    for (int x = 0; x < tsIindexes.size(); x++)
      newWarpPath.addLast(
          ((Integer) tsJindexes.get(x)).intValue(), ((Integer) tsIindexes.get(x)).intValue());

    return newWarpPath;
  }
Example #2
0
  public boolean equals(Object obj) {
    if (obj instanceof WarpPath) {
      WarpPath p = (WarpPath) obj;
      if (p.size() == size() && p.maxI() == maxI() && p.maxJ() == maxJ()) {
        for (int x = 0; x < size(); x++) if (!get(x).equals(p.get(x))) return false;

        return true;
      } else {
        return false;
      }
    } else {
      return false;
    }
  }