Package globus.glsearch
Class GLSearchCategories
- java.lang.Object
-
- globus.glmap.GLNativeObject
-
- globus.glsearch.GLSearchCategories
-
public class GLSearchCategories extends globus.glmap.GLNativeObjectGLSearchCategoriesclass holds a set of `GLSearchCategory` that will be used to sort search results by priority.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GLSearchCategoryfindByIconName(java.lang.String iconName)GLSearchCategoryfindByName(java.lang.String name)static GLSearchCategoriesgetShared()GLSearchCategory[]getStartedWith(java.lang.String[] words, globus.glmap.GLMapLocaleSettings localeSettings)Returns categories that starts with given wordsGLSearchCategory[]getTop()
-
-
-
Method Detail
-
getShared
@NonNull public static GLSearchCategories getShared()
-
getTop
@NonNull public GLSearchCategory[] getTop()
- Returns:
- Returns top categories
-
getStartedWith
@Nullable public GLSearchCategory[] getStartedWith(@NonNull java.lang.String[] words, @NonNull globus.glmap.GLMapLocaleSettings localeSettings)
Returns categories that starts with given words- Parameters:
words- Words arraylocaleSettings- Language priority settings- Returns:
- Matched array of categories
-
findByName
@Nullable public GLSearchCategory findByName(@NonNull java.lang.String name)
- Parameters:
name- name of category- Returns:
- Returns category with given name.
-
findByIconName
@Nullable public GLSearchCategory findByIconName(@NonNull java.lang.String iconName)
- Parameters:
iconName- Icon name- Returns:
- Returns category with given name.
-
-