@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Node other = (Node) obj; if (elementId == null) { if (other.elementId != null) return false; } else if (!elementId.equals(other.elementId)) return false; if (bounds == null) { if (other.bounds != null) return false; } else if (!bounds.equals(other.bounds)) return false; if (children == null) { if (other.children != null) return false; } else if (!children.equals(other.children)) return false; return true; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Node other = (Node) obj; if (elementId == null) { if (other.elementId != null) return false; } else if (!elementId.equals(other.elementId)) return false; if (bounds == null) { if (other.bounds != null) return false; } else if (!bounds.equals(other.bounds)) return false; if (children == null) { if (other.children != null) return false; } else if (!children.equals(other.children)) return false; return true; }