Class SuggestTree.Node
java.lang.Object
com.vividsolutions.jump.util.SuggestTree.Node
- Enclosing class:
SuggestTree
A list of autocomplete suggestions, ordered from highest weight to lowest
weight.
-
Method Summary
Modifier and TypeMethodDescriptiongetSuggestion(int index) Returns the suggestion at the specified index in the list.intReturns the number of suggestions in the list.
-
Method Details
-
getSuggestion
Returns the suggestion at the specified index in the list. The first suggestion is at index 0, the second at index 1, and so on.- Parameters:
index- the index of the suggestion to return- Returns:
- the suggestion at the specified index in the list
- Throws:
ArrayIndexOutOfBoundsException- if the specified index is negative or not less than the list length
-
listLength
public int listLength()Returns the number of suggestions in the list.- Returns:
- the number of suggestions in the list
-