Class SearchResult<P,​T>

  • Type Parameters:
    P - the position type
    T - the client item type

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T getItem()
      Returns the user item stored in this terminal node at add time.
      ByteTrieNodeIfc<T> getNode()
      Returns the (terminal) node that was encountered in the search
      P getPosition()
      Returns the position at which the byte sequence was found.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • 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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object