public boolean equals()

in taverna-scufl2-api/src/main/java/org/apache/taverna/scufl2/api/core/DataLink.java [141:167]


	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		DataLink other = (DataLink) obj;
		if (getSendsTo() == null) {
			if (other.getSendsTo() != null)
				return false;
		} else if (!getSendsTo().equals(other.getSendsTo()))
			return false;
		if (getReceivesFrom() == null) {
			if (other.getReceivesFrom() != null)
				return false;
		} else if (!getReceivesFrom().equals(other.getReceivesFrom()))
			return false;
		if (getMergePosition() == null) {
			if (other.getMergePosition() != null)
				return false;
		} else if (!getMergePosition().equals(other.getMergePosition())) {
			return false;
		}

		return true;
	}