@Test public void testRunSpecifierOneInputNoComma() { assertThat( getTestPAC("@specifier(b1", testLibrary).run(), containsInAnyOrder( new ParboiledAutoCompleteSuggestion("b1a", 11, REFERENCE_BOOK_NAME), new ParboiledAutoCompleteSuggestion(",", 13, REFERENCE_BOOK_AND_ADDRESS_GROUP_TAIL))); }
Set<ParboiledAutoCompleteSuggestion> run() { Set<PotentialMatch> potentialMatches = getPotentialMatches(_query); return potentialMatches.stream() .map(this::autoCompletePotentialMatch) .flatMap(Collection::stream) .collect(ImmutableSet.toImmutableSet()); }
ParboiledAutoComplete { Set<ParboiledAutoCompleteSuggestion> run() { Set<PotentialMatch> potentialMatches = getPotentialMatches(_query); return potentialMatches.stream() .map(this::autoCompletePotentialMatch) .flatMap(Collection::stream) .collect(ImmutableSet.toImmutableSet()); } }
ParboiledAutoComplete { Set<ParboiledAutoCompleteSuggestion> run() { Set<PotentialMatch> potentialMatches = getPotentialMatches(_query); return potentialMatches.stream() .map(this::autoCompletePotentialMatch) .flatMap(Collection::stream) .collect(ImmutableSet.toImmutableSet()); } ParboiledAutoComplete(
      CommonParser parser,
      Grammar grammar,
      Map<String, Anchor.Type> completionTypes,
      String network,
      String snapshot,
      String query,
      int maxSuggestions,
      CompletionMetadata completionMetadata,
      NodeRolesData nodeRolesData,
      ReferenceLibrary referenceLibrary);   ParboiledAutoComplete(
      Grammar grammar,
      Rule inputRule,
      Map<String, Anchor.Type> completionTypes,
      String network,
      String snapshot,
      String query,
      int maxSuggestions,
      CompletionMetadata completionMetadata,
      NodeRolesData nodeRolesData,
      ReferenceLibrary referenceLibrary); }
ParboiledAutoComplete { Set<ParboiledAutoCompleteSuggestion> run() { Set<PotentialMatch> potentialMatches = getPotentialMatches(_query); return potentialMatches.stream() .map(this::autoCompletePotentialMatch) .flatMap(Collection::stream) .collect(ImmutableSet.toImmutableSet()); } ParboiledAutoComplete(
      CommonParser parser,
      Grammar grammar,
      Map<String, Anchor.Type> completionTypes,
      String network,
      String snapshot,
      String query,
      int maxSuggestions,
      CompletionMetadata completionMetadata,
      NodeRolesData nodeRolesData,
      ReferenceLibrary referenceLibrary);   ParboiledAutoComplete(
      Grammar grammar,
      Rule inputRule,
      Map<String, Anchor.Type> completionTypes,
      String network,
      String snapshot,
      String query,
      int maxSuggestions,
      CompletionMetadata completionMetadata,
      NodeRolesData nodeRolesData,
      ReferenceLibrary referenceLibrary); static List<AutocompleteSuggestion> autoComplete(
      Grammar grammar,
      String network,
      String snapshot,
      String query,
      int maxSuggestions,
      CompletionMetadata completionMetadata,
      NodeRolesData nodeRolesData,
      ReferenceLibrary referenceLibrary); }
ParboiledAutoComplete { Set<ParboiledAutoCompleteSuggestion> run() { Set<PotentialMatch> potentialMatches = getPotentialMatches(_query); return potentialMatches.stream() .map(this::autoCompletePotentialMatch) .flatMap(Collection::stream) .collect(ImmutableSet.toImmutableSet()); } ParboiledAutoComplete(
      CommonParser parser,
      Grammar grammar,
      Map<String, Anchor.Type> completionTypes,
      String network,
      String snapshot,
      String query,
      int maxSuggestions,
      CompletionMetadata completionMetadata,
      NodeRolesData nodeRolesData,
      ReferenceLibrary referenceLibrary);   ParboiledAutoComplete(
      Grammar grammar,
      Rule inputRule,
      Map<String, Anchor.Type> completionTypes,
      String network,
      String snapshot,
      String query,
      int maxSuggestions,
      CompletionMetadata completionMetadata,
      NodeRolesData nodeRolesData,
      ReferenceLibrary referenceLibrary); static List<AutocompleteSuggestion> autoComplete(
      Grammar grammar,
      String network,
      String snapshot,
      String query,
      int maxSuggestions,
      CompletionMetadata completionMetadata,
      NodeRolesData nodeRolesData,
      ReferenceLibrary referenceLibrary);  }