Package net.mtrop.doom.struct.trie
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>
A result of a passive search on a trie.
-
Method Details
-
getFoundValue
- Returns:
- the value on the result, if something was found.
-
getEncounteredValues
- Returns:
- the list of values found along the way of a search.
-
getDescendantValues
- Returns:
- the list of values descending from the endpoint of a search.
-
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
-