if (!(o instanceof LCSGeometryDiffImpl)) {
return false;
}
LCSGeometryDiffImpl d = (LCSGeometryDiffImpl) o;
for (int i = 0; i < d.patches.size(); i++) {
Patch patchA = patches.get(i);
Patch patchB = d.patches.get(i);
if (!patchA.equals(patchB)) {
return false;
}
}
return true;