@Override
  public boolean equals(final Object other) {
    if (other == null) return false;
    if (other == this) return true;
    if (!(other instanceof Memory)) return false;

    return Arrays.equals(memBytes, ((Memory) other).memBytes);
  }
Returns true if the object is equal to this memory instance; otherwise false.

@param other The object to compare this memory instance with.
@return True if the object is equal to this memory instance.
evm/src/main/java/org/hyperledger/besu/evm/frame/Memory.java