Class SearchResult<P,T>

java.lang.Object
ghidra.util.search.trie.SearchResult<P,T>
Type Parameters:
P - the position type
T - the client item type

public class SearchResult<P,T> extends Object
A search result container class used with ByteTrie.
  • Method Details

    • getNode

      public ByteTrieNodeIfc<T> getNode()
      Returns the (terminal) node that was encountered in the search
      Returns:
      the node
    • getPosition

      public P getPosition()
      Returns the position at which the byte sequence was found. Currently ByteTrie will use Integer for search byte arrays, and Address for searching Memory in a Program.
      Returns:
      the position at which the byte sequence was found
    • getItem

      public T getItem()
      Returns the user item stored in this terminal node at add time.
      Returns:
      the user item
    • toString

      public String toString()
      Overrides:
      toString in class Object