public boolean equalsWithComments(Object o) { ASTPtrdeclaratorList comp; if ((o instanceof ASTPtrdeclaratorList)) { comp = (ASTPtrdeclaratorList) o; } else { return false; } if (this.size() == comp.size()) { java.util.Iterator<ASTPtrdeclarator> one = this.iterator(); java.util.Iterator<ASTPtrdeclarator> two = comp.iterator(); while (one.hasNext()) { if (!one.next().equalsWithComments(two.next())) { return false; } } } else { return false; } return true; }
public boolean deepEqualsWithComments(Object o, boolean forceSameOrder) { ASTPtrdeclaratorList comp; if ((o instanceof ASTPtrdeclaratorList)) { comp = (ASTPtrdeclaratorList) o; } else { return false; } if (this.size() == comp.size()) { if (forceSameOrder) { java.util.Iterator<ASTPtrdeclarator> one = this.iterator(); while (one.hasNext()) { ASTPtrdeclarator oneNext = one.next(); boolean matchFound = false; java.util.Iterator<ASTPtrdeclarator> two = comp.iterator(); while (two.hasNext()) { if (oneNext.deepEqualsWithComments(two.next(), forceSameOrder)) { matchFound = true; break; } } if (!matchFound) { return false; } } } else { java.util.Iterator<ASTPtrdeclarator> one = this.iterator(); java.util.Iterator<ASTPtrdeclarator> two = comp.iterator(); while (one.hasNext()) { if (!one.next().deepEqualsWithComments(two.next(), forceSameOrder)) { return false; } } } } else { return false; } return true; }