test_class.declarator: plugins
test_class.modifier: private
test_class.original_string: private Map<String, SearchablePlugin> plugins;
test_class.type: Map<String, SearchablePlugin>
test_class.var_name: plugins
test_class.file: runelite-client/src/test/java/net/runelite/client/plugins/config/PluginSearchTest.java
test_class.identifier: PluginSearchTest
test_case.body: @Test
  	public void searchOrdersItemsWithMatchesInTitleFirst()
  	{
  		List<SearchablePlugin> results = PluginSearch.search(plugins.values(), "STATUS");
  		assertThat(results.get(0), equalTo(plugins.get("Status Bars")));
  	}
test_case.class_method_signature: PluginSearchTest.searchOrdersItemsWithMatchesInTitleFirst()
test_case.full_signature: @Test public void searchOrdersItemsWithMatchesInTitleFirst()
test_case.identifier: searchOrdersItemsWithMatchesInTitleFirst
test_case.invocations: search values assertThat get equalTo get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void searchOrdersItemsWithMatchesInTitleFirst()
focal_class.declarator: SPLITTER = Splitter.on(" ").trimResults().omitEmptyStrings()
focal_class.modifier: private static final
focal_class.original_string: private static final Splitter SPLITTER = Splitter.on(" ").trimResults().omitEmptyStrings();
focal_class.type: Splitter
focal_class.var_name: SPLITTER
focal_class.file: runelite-client/src/main/java/net/runelite/client/plugins/config/PluginSearch.java
focal_class.identifier: PluginSearch
focal_class.class_method_signature: PluginSearch.search(Collection<T> searchablePlugins, String query)
focal_class.full_signature: public static List<T> search(Collection<T> searchablePlugins, String query)
focal_class.identifier: search
focal_class.modifiers: public static
focal_class.parameters: (Collection<T> searchablePlugins, String query)
focal_class.return: List<T>
focal_class.signature: List<T> search(Collection<T> searchablePlugins, String query)
focal_class.class_method_signature: PluginSearch.comparator(String query)
focal_class.full_signature: private static Comparator<SearchablePlugin> comparator(String query)
focal_class.identifier: comparator
focal_class.modifiers: private static
focal_class.parameters: (String query)
focal_class.return: Comparator<SearchablePlugin>
focal_class.signature: Comparator<SearchablePlugin> comparator(String query)
focal_class.class_method_signature: PluginSearch.stream(Iterable<String> iterable)
focal_class.full_signature: private static Stream<String> stream(Iterable<String> iterable)
focal_class.identifier: stream
focal_class.modifiers: private static
focal_class.parameters: (Iterable<String> iterable)
focal_class.return: Stream<String>
focal_class.signature: Stream<String> stream(Iterable<String> iterable)
focal_class.class_method_signature: PluginSearch.containsOrIsContainedBy(String a, String b)
focal_class.full_signature: private static boolean containsOrIsContainedBy(String a, String b)
focal_class.identifier: containsOrIsContainedBy
focal_class.modifiers: private static
focal_class.parameters: (String a, String b)
focal_class.return: boolean
focal_class.signature: boolean containsOrIsContainedBy(String a, String b)
focal_method.body: public static <T extends SearchablePlugin> List<T> search(Collection<T> searchablePlugins, String query)
  	{
  		return searchablePlugins.stream()
  			.filter(plugin -> Text.matchesSearchTerms(SPLITTER.split(query.toLowerCase()), plugin.getKeywords()))
  			.sorted(comparator(query))
  			.collect(Collectors.toList());
  	}
focal_method.class_method_signature: PluginSearch.search(Collection<T> searchablePlugins, String query)
focal_method.full_signature: public static List<T> search(Collection<T> searchablePlugins, String query)
focal_method.identifier: search
focal_method.invocations: collect sorted filter stream matchesSearchTerms split toLowerCase getKeywords comparator toList
focal_method.modifiers: public static
focal_method.parameters: (Collection<T> searchablePlugins, String query)
focal_method.return: List<T>
focal_method.signature: List<T> search(Collection<T> searchablePlugins, String query)