Package hudson.search
Class FixedSet
- java.lang.Object
-
- hudson.search.FixedSet
-
- All Implemented Interfaces:
SearchIndex
public class FixedSet extends Object implements SearchIndex
Set ofSearchItem
s that are statically known upfront.- Author:
- Kohsuke Kawaguchi
-
-
Field Summary
-
Fields inherited from interface hudson.search.SearchIndex
EMPTY
-
-
Constructor Summary
Constructors Constructor Description FixedSet(SearchItem... items)
FixedSet(Collection<? extends SearchItem> items)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
find(String token, List<SearchItem> result)
void
suggest(String token, List<SearchItem> result)
This method returns the superset ofSearchIndex.find(String, List)
.
-
-
-
Constructor Detail
-
FixedSet
public FixedSet(Collection<? extends SearchItem> items)
-
FixedSet
public FixedSet(SearchItem... items)
-
-
Method Detail
-
find
public void find(String token, List<SearchItem> result)
- Specified by:
find
in interfaceSearchIndex
-
suggest
public void suggest(String token, List<SearchItem> result)
Description copied from interface:SearchIndex
This method returns the superset ofSearchIndex.find(String, List)
.- Specified by:
suggest
in interfaceSearchIndex
-
-