Class MapResultData
-
- All Implemented Interfaces:
-
org.apache.jmeter.report.processor.ResultData
public class MapResultData implements ResultData
The class MapResultData provides a hash map of results from samples processing.
- Since:
3.0
-
-
Constructor Summary
Constructors Constructor Description MapResultData()
-
Method Summary
Modifier and Type Method Description <T> T
accept(ResultDataVisitor<T> visitor)
Accepts the specified visitor. Set<Map.Entry<String, ResultData>>
entrySet()
Get the entry set. ResultData
getResult(String name)
Gets the result with the specified name. ResultData
setResult(String name, ResultData result)
Sets the specified result to the map. ResultData
removeResult(String name)
Removes the result with the specified name. String
toString()
-
-
Method Detail
-
accept
<T> T accept(ResultDataVisitor<T> visitor)
Accepts the specified visitor.
- Parameters:
visitor
- the visitor (must not benull
)- Returns:
result of the visit
-
entrySet
Set<Map.Entry<String, ResultData>> entrySet()
Get the entry set.
- Returns:
the sets of entries of the map
-
getResult
ResultData getResult(String name)
Gets the result with the specified name.
- Parameters:
name
- the name of the result- Returns:
the result
-
setResult
ResultData setResult(String name, ResultData result)
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
ResultData removeResult(String name)
Removes the result with the specified name.
- Parameters:
name
- the name of the result- Returns:
the removed result data
-
-
-
-