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

		MemoryMatch other = (MemoryMatch) obj;
		// just compare addresses. The bytes are mutable and we want matches to be equal even
		// if the bytes are different
		return Objects.equals(address, other.address);
	}
A class that represents a memory search hit at an address. Matches can also be updated with
new byte values (from a scan or refresh action). The original bytes that matched the original
search are maintained in addition to the "refreshed" bytes.
Ghidra/Features/Base/src/main/java/ghidra/features/base/memsearch/searcher/MemoryMatch.java