Class AbstractTrie.Result<V,S>

java.lang.Object
net.mtrop.doom.struct.trie.AbstractTrie.Result<V,S>
Type Parameters:
V - the value type that this holds.
S - the type of the split segments used for searching.
Enclosing class:
AbstractTrie<V,S>

protected static class AbstractTrie.Result<V,S> extends Object
A result of a passive search on a trie.
  • Method Details

    • getFoundValue

      public V getFoundValue()
      Returns:
      the value on the result, if something was found.
    • getEncounteredValues

      public List<V> getEncounteredValues()
      Returns:
      the list of values found along the way of a search.
    • getDescendantValues

      public List<V> getDescendantValues()
      Returns:
      the list of values descending from the endpoint of a search.
    • getSegments

      public S[] getSegments()
      Returns:
      the segments generated by the input value.
    • getMovesToLastEncounter

      public int getMovesToLastEncounter()
      Returns:
      how many moves it took to find the last encountered object in a search.
    • getMoveCount

      public int getMoveCount()
      Returns:
      how many edge hops that this performed in order to reach the result.
    • toString

      public String toString()
      Overrides:
      toString in class Object