Class SearchResponse<T>
java.lang.Object
com.broadleafcommerce.bulkoperations.domain.SearchResponse<T>
- Type Parameters:
T
- the type of which the response results consist.
- All Implemented Interfaces:
Serializable
DTO representing the results from the search service request.
- Author:
- Nathan Moore (nathandmoore)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttribute
(String name, Object value) Takes in any additional attributes passed in the request not matching any defined properties.protected boolean
boolean
getAttribute
(String name) Return any additional attributes passed in the request not matching any defined properties.Map holding any additional attributes passed in the request not matching any defined properties.The actual results for the search request.int
hashCode()
void
setAttributes
(Map<String, Object> attributes) Map holding any additional attributes passed in the request not matching any defined properties.void
setContent
(List<T> content) The actual results for the search request.toString()
-
Constructor Details
-
SearchResponse
public SearchResponse()
-
-
Method Details
-
addAttribute
Takes in any additional attributes passed in the request not matching any defined properties.- Parameters:
name
- Name of the additional attributevalue
- Value of the additional attribute
-
getAttribute
Return any additional attributes passed in the request not matching any defined properties.- Returns:
- any additional attributes passed in the request not matching any defined properties.
-
getContent
The actual results for the search request.- Returns:
- The actual results for the search request.
-
getAttributes
Map holding any additional attributes passed in the request not matching any defined properties. -
setContent
The actual results for the search request.- Parameters:
content
- The actual results for the search request.
-
setAttributes
Map holding any additional attributes passed in the request not matching any defined properties. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-