All Implemented Interfaces:
Source<T>, Serializable, IComponentAwareEventSink, IRequestListener, IComponentAwareHeaderContributor, IClusterable

public class LocalBloodhound<T> extends Bloodhound<T>
A Bloodhound implementation for local datasets.
See Also:
  • Constructor Details

  • Method Details

    • getChoices

      public Iterable<T> getChoices(String input)
      Description copied from interface: Source
      Get an iterable of choices for the given input term.
      Specified by:
      getChoices in interface Source<T>
      Specified by:
      getChoices in class Bloodhound<T>
    • renderChoice

      public String renderChoice(T choice)
      Description copied from interface: Source
      Render the given choice to a Javascript object, e.g

      Json.stringify(choice);

      Returns:
      the javascript object representation of the given choice