@Override
	public boolean equals(Object obj) {
		if (obj == this) {
			return true;
		}
		if (obj == null) {
			return false;
		}
		if (getClass() != obj.getClass()) {
			return false;
		}
		if (hashCode() != obj.hashCode()) {
			return false;
		}

		AddressSpace s = (AddressSpace) obj;
		if (type != s.getType() || size != s.getSize() || !getName().equals(s.getName())) {
			return false;
		}

		return true;
	}
Returns the unique id value for this space.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/address/AbstractAddressSpace.java