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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CollectionSearchIndex
public CollectionSearchIndex()
get
protected abstract SearchItem get(String key)
- Gets a single item that exactly matches the given key.
all
protected abstract Collection<SMT> all()
- Returns all items in the map.
The collection can include null items.
find
public void find(String token,
List<SearchItem> result)
- Specified by:
find
in interface SearchIndex
suggest
public void suggest(String token,
List<SearchItem> result)
- Description copied from interface:
SearchIndex
- This method returns the superset of
SearchIndex.find(String, List)
.
- Specified by:
suggest
in interface SearchIndex
getName
protected String getName(SMT o)
Copyright © 2004-2013. All Rights Reserved.