@Override public boolean equals(Object obj) { if (obj == this) { return true; } else if (obj == null || !(obj instanceof RequestAttributes)) { return false; } else { RequestAttributes objRequestAttributes = (RequestAttributes)obj; // Content nodes need to be handled specially because content.equals(content) does not work unless they are the same object, and // content.isEqualNode(content) only works if the nodes have identical newlines and spaces, which is not what we care about. if (ObjUtil.xmlEqualsAllowNull(this.getContentRoot(), objRequestAttributes.getContentRoot()) == false) { return false; } return super.equals(objRequestAttributes) && ObjUtil.equalsAllowNull(this.getXmlId(), objRequestAttributes.getXmlId()); } }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } else if (obj == null || !(obj instanceof RequestAttributes)) { return false; } else { RequestAttributes objRequestAttributes = (RequestAttributes)obj; // Content nodes need to be handled specially because content.equals(content) does not work unless they are the same object, and // content.isEqualNode(content) only works if the nodes have identical newlines and spaces, which is not what we care about. if (ObjUtil.xmlEqualsAllowNull(this.getContentRoot(), objRequestAttributes.getContentRoot()) == false) { return false; } return super.equals(objRequestAttributes) && ObjUtil.equalsAllowNull(this.getXmlId(), objRequestAttributes.getXmlId()); } }