Package ghidra.util.search.memory

# Class MemSearchResult

java.lang.Object
ghidra.util.search.memory.MemSearchResult

All Implemented Interfaces:
  `Comparable<MemSearchResult>`

public class MemSearchResult extends Object implements Comparable<MemSearchResult>
A class that represents a memory search hit at an address.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `MemSearchResult(Address address, int length)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `addressEquals(Address a)`
  Returns true if the given address equals the address of this search result
  `int`
  `compareTo(MemSearchResult o)`
  `boolean`
  `equals(Object obj)`
  `Address`
  `getAddress()`
  `int`
  `getLength()`
  `int`
  `hashCode()`
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### MemSearchResult

    public MemSearchResult(Address address, int length)

- ## Method Details

  - ### getAddress

    public Address getAddress()

  - ### getLength

    public int getLength()

  - ### compareTo

    public int compareTo(MemSearchResult o)
    Specified by:
      `compareTo` in interface `Comparable<MemSearchResult>`

  - ### hashCode

    public int hashCode()
    Overrides:
      `hashCode` in class `Object`

  - ### equals

    public boolean equals(Object obj)
    Overrides:
      `equals` in class `Object`

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`

  - ### addressEquals

    public boolean addressEquals(Address a)
    Returns true if the given address equals the address of this search result
    Parameters:
      `a` - the other address
    Returns:
      true if the given address equals the address of this search result