Class MapResultData
java.lang.Object
org.apache.jmeter.report.processor.MapResultData
- All Implemented Interfaces:
ResultData
The class MapResultData provides a hash map of results from samples
processing.
- Since:
- 3.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(ResultDataVisitor<T> visitor) Accepts the specified visitor.entrySet()
Get the entry set.Gets the result with the specified name.removeResult
(String name) Removes the result with the specified name.setResult
(String name, ResultData result) Sets the specified result to the map.toString()
-
Constructor Details
-
MapResultData
public MapResultData()
-
-
Method Details
-
accept
Description copied from interface:ResultData
Accepts the specified visitor.- Specified by:
accept
in interfaceResultData
- Type Parameters:
T
- type of the results of theResultDataVisitor
- Parameters:
visitor
- the visitor (must not benull
)- Returns:
- result of the visit
-
entrySet
Get the entry set.- Returns:
- the sets of entries of the map
-
getResult
Gets the result with the specified name.- Parameters:
name
- the name of the result- Returns:
- the result
-
setResult
Sets the specified result to the map.- Parameters:
name
- the name of the resultresult
- the result- Returns:
- the previously result data associated with the specified name
-
removeResult
Removes the result with the specified name.- Parameters:
name
- the name of the result- Returns:
- the removed result data
-
toString
-