- NodeConnector rhs = (NodeConnector)obj;
- return new EqualsBuilder()
- .append(this.getType(), rhs.getType())
- .append(this.getID(), rhs.getID())
- .append(this.getNode(), rhs.getNode())
- .isEquals();
+ if (getClass() != obj.getClass()) {
+ return false;
+ }
+ NodeConnector other = (NodeConnector) obj;
+ if (nodeConnectorID == null) {
+ if (other.nodeConnectorID != null) {
+ return false;
+ }
+ } else if (!nodeConnectorID.equals(other.nodeConnectorID)) {
+ return false;
+ }
+ if (nodeConnectorNode == null) {
+ if (other.nodeConnectorNode != null) {
+ return false;
+ }
+ } else if (!nodeConnectorNode.equals(other.nodeConnectorNode)) {
+ return false;
+ }
+ if (nodeConnectorType == null) {
+ if (other.nodeConnectorType != null) {
+ return false;
+ }
+ } else if (!nodeConnectorType.equals(other.nodeConnectorType)) {
+ return false;
+ }
+ return true;