Class SuggestTree.Node

java.lang.Object
com.vividsolutions.jump.util.SuggestTree.Node
Enclosing class:
SuggestTree

public static class SuggestTree.Node extends Object
A list of autocomplete suggestions, ordered from highest weight to lowest weight.
  • Method Details

    • getSuggestion

      public SuggestTree.Entry getSuggestion(int index)
      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