* The Class SearchResponse.
*/
public class SearchResponse {
-
+
private long processingTimeInMs;
private int totalFound;
public void setProcessingTimeInMs(long processingTimeInMs) {
this.processingTimeInMs = processingTimeInMs;
}
-
+
public int getTotalFound() {
return totalFound;
}
-
+
public void setTotalFound(int totalFound) {
this.totalFound = totalFound;
}
*
* @param suggestionEntry that will be converted to JSON
*/
- public void addSuggestion(SearchSuggestion suggestionEntity) {
+ public void addSuggestion(SearchSuggestion suggestionEntity){
suggestions.add(suggestionEntity);
}
-
+
/**
- * Increments the total number of hits for this SearchResponse by the value passed in.
+ * Increments the total number of hits for this SearchResponse by
+ * the value passed in.
*
* @param additionalCount - Count to increment the total found
*/
return "SearchResponse [processingTimeInMs=" + processingTimeInMs + ", totalFound=" + totalFound
+ ", " + (suggestions != null ? "suggestions=" + suggestions : "") + "]";
}
-
-
-
+
+
+
}