public boolean equals()

in taverna-reference-impl/src/main/java/org/apache/taverna/reference/impl/T2ReferenceImpl.java [257:282]


	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		T2ReferenceImpl other = (T2ReferenceImpl) obj;
		if (depth != other.depth)
			return false;
		if (localLeastSigBits != other.localLeastSigBits)
			return false;
		if (localMostSigBits != other.localMostSigBits)
			return false;
		if (localPart == null) {
			if (other.localPart != null)
				return false;
		} else if (!localPart.equals(other.localPart))
			return false;
		if (namespacePart == null) {
			if (other.namespacePart != null)
				return false;
		} else if (!namespacePart.equals(other.namespacePart))
			return false;
		return true;
	}