Class DefaultSearchResult<T>

java.lang.Object
org.jline.prompt.impl.AbstractPromptResult<SearchPrompt<T>>
org.jline.prompt.impl.DefaultSearchResult<T>
Type Parameters:
T - the type of items being searched
All Implemented Interfaces:
PromptResult<SearchPrompt<T>>, SearchResult<T>

public class DefaultSearchResult<T> extends AbstractPromptResult<SearchPrompt<T>> implements SearchResult<T>
Implementation of SearchResult.
  • Constructor Details

    • DefaultSearchResult

      public DefaultSearchResult(String selectedValue, SearchPrompt<T> prompt)
      Create a new DefaultSearchResult with the given selected value.
      Parameters:
      selectedValue - the selected value as a string
      prompt - the associated SearchPrompt
  • Method Details