BrightSide Workbench Full Report + Source Code
org.turro.elephant.search.SearchCategoryResult Class Reference

Public Member Functions

void addItem (String categoryId, String categoryName, SearchItem item)
 
String toJson ()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 29 of file SearchCategoryResult.java.

Member Function Documentation

◆ addItem()

void org.turro.elephant.search.SearchCategoryResult.addItem ( String  categoryId,
String  categoryName,
SearchItem  item 
)

Definition at line 33 of file SearchCategoryResult.java.

33  {
34  SearchCategory category = results.get(categoryId);
35  if(category == null) {
36  category = new SearchCategory(categoryName);
37  results.put(categoryId, category);
38  }
39  category.addItem(item);
40  }
Here is the call graph for this function:

◆ toJson()

String org.turro.elephant.search.SearchCategoryResult.toJson ( )

Definition at line 42 of file SearchCategoryResult.java.

42  {
43  return new Gson().toJson(this);
44  }

The documentation for this class was generated from the following file: