Package hudson.search
Class CollectionSearchIndex<SMT extends SearchableModelObject>
java.lang.Object
hudson.search.CollectionSearchIndex<SMT>
- All Implemented Interfaces:
SearchIndex
public abstract class CollectionSearchIndex<SMT extends SearchableModelObject>
extends Object
implements SearchIndex
SearchIndex
built on a Map
.- Author:
- Kohsuke Kawaguchi
-
Field Summary
Fields inherited from interface hudson.search.SearchIndex
EMPTY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Collection<SMT>
all()
Returns all items in the map.void
find
(String token, List<SearchItem> result) protected abstract SearchItem
Gets a single item that exactly matches the given key.protected String
void
suggest
(String token, List<SearchItem> result) This method returns the superset ofSearchIndex.find(String, List)
.
-
Constructor Details
-
CollectionSearchIndex
public CollectionSearchIndex()
-
-
Method Details
-
get
Gets a single item that exactly matches the given key. -
all
Returns all items in the map. The collection can include null items. -
allAsIterable
-
find
- Specified by:
find
in interfaceSearchIndex
-
suggest
Description copied from interface:SearchIndex
This method returns the superset ofSearchIndex.find(String, List)
.- Specified by:
suggest
in interfaceSearchIndex
-
getName
-